We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f19eda commit 53dcba6Copy full SHA for 53dcba6
s6r_purchase_received_forced_qty/models/purchase_order_line.py
@@ -17,3 +17,12 @@ def _compute_qty_received(self):
17
for line in self:
18
line.qty_received += line.qty_received_forced
19
return
20
+
21
+ # when stock moves are created, quantity is computed from already existing stock moves
22
+ # so we need to adjust this quantity depending on the qty_received_forced field.
23
+ def _get_qty_procurement(self):
24
+ qty = super()._get_qty_procurement()
25
26
+ if self.qty_received_forced:
27
+ qty += self.qty_received_forced
28
+ return qty
0 commit comments