Skip to content

Commit

Permalink
Merge PR #1222 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by aleuffre
  • Loading branch information
OCA-git-bot committed Mar 5, 2024
2 parents 647a5ec + a2d1b49 commit 2bc230d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def test_action_confirm_invalid(self):
def test_action_confirm_flow(self):
"""Test flow that run full workflow"""
product = self.product_template_two_attributes
product.uom_id = self.env.ref("uom.product_uom_dozen")
context = {
"default_product_tmpl_id": product.id,
"default_new_product_template_name": "{} 1".format(product.name),
Expand Down Expand Up @@ -60,6 +61,7 @@ def test_action_confirm_flow(self):
)
self.assertEqual(boms.type, "phantom")
self.assertEqual(boms.product_qty, 1, "Product Qty must be equal to 1")
self.assertEqual(boms.product_uom_id, product.uom_id)
self.assertTrue(boms.bom_line_ids, "BOM must have Lines")
self.assertEqual(len(boms.bom_line_ids), 1, msg="BOM must have one line")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def action_confirm(self):
"product_tmpl_id": new_product.id,
"type": "phantom",
"product_qty": 1,
"product_uom_id": new_product.uom_id.id,
"bom_line_ids": [
(
0,
Expand Down

0 comments on commit 2bc230d

Please sign in to comment.