Skip to content

Commit

Permalink
[IMP]purchase_sale_inter_company: tests pt3
Browse files Browse the repository at this point in the history
  • Loading branch information
toita86 committed Mar 26, 2024
1 parent 4badbe2 commit 9ad85e2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ def test_block_manual_validation(self):
"""
self.company_a.sync_picking = True
self.company_b.sync_picking = True
self.company_a.block_po_manual_picking_validation = True
self.company_b.block_po_manual_picking_validation = True
purchase = self._create_purchase_order(
self.partner_company_b, self.consumable_product
Expand All @@ -615,4 +616,4 @@ def test_block_manual_validation(self):
self.assertEqual(po_picking_id.state, "waiting")
# The manual validation should be blocked
with self.assertRaises(UserError):
po_picking_id.button_validate()
po_picking_id.with_user(self.user_company_a).button_validate()

0 comments on commit 9ad85e2

Please sign in to comment.