Skip to content

Commit 5773db5

Browse files
committed
[FIX] purchase_order_uninvoiced_amount: test error unsupported operand type(s) for "=="
1 parent 6d74aef commit 5773db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

purchase_order_uninvoiced_amount/tests/test_purchase_order_uninvoiced_amount.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _create_invoice_from_purchase(self, purchase):
7979
invoice_form = Form(
8080
self.account_move_model.with_context(
8181
default_move_type="in_invoice",
82-
default_purchase_id=purchase,
82+
default_purchase_id=purchase.id,
8383
default_partner_id=purchase.partner_id,
8484
)
8585
)

0 commit comments

Comments
 (0)