Skip to content

Commit

Permalink
fixup! fixup! Add purchase_propagate_qty_mrp
Browse files Browse the repository at this point in the history
  • Loading branch information
TDu committed Nov 6, 2024
1 parent 1a48169 commit 38e1bf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions purchase_propagate_qty_mrp/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"summary": "",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/purchase-workflow",
"maintainers": ["TDu"],
"category": "Purchase Management",
"license": "AGPL-3",
"depends": ["purchase_propagate_qty", "mrp"],
Expand Down
6 changes: 6 additions & 0 deletions purchase_propagate_qty_mrp/models/purchase_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ def _propagate_qty_to_moves_mrp(self):
):
relevant_bom = bom
break
if not relevant_bom:
relevant_bom = (

Check warning on line 36 in purchase_propagate_qty_mrp/models/purchase_order_line.py

View check run for this annotation

Codecov / codecov/patch

purchase_propagate_qty_mrp/models/purchase_order_line.py#L36

Added line #L36 was not covered by tests
self.env["mrp.bom"]
.sudo()
._bom_find(product=self.product_id, bom_type="phantom")
)
if not relevant_bom:
return None

Check warning on line 42 in purchase_propagate_qty_mrp/models/purchase_order_line.py

View check run for this annotation

Codecov / codecov/patch

purchase_propagate_qty_mrp/models/purchase_order_line.py#L42

Added line #L42 was not covered by tests
new_kit_quantity = self.product_uom_qty
Expand Down

0 comments on commit 38e1bf7

Please sign in to comment.