Skip to content

Commit

Permalink
[MIG] account_payment_purchase: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiadavid committed Dec 20, 2022
1 parent 367ced6 commit f90f230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion account_payment_purchase/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Account Payment Purchase",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Banking addons",
"license": "AGPL-3",
"summary": "Adds Bank Account and Payment Mode on Purchase Orders",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import fields
from odoo.tests import Form, TransactionCase, tagged
from odoo.tests import TransactionCase, tagged


@tagged("-at_install", "post_install")
Expand Down Expand Up @@ -49,7 +49,7 @@ def setUpClass(cls):
"name": "Test buy product",
"uom_id": cls.uom_id,
"uom_po_id": cls.uom_id,
"seller_ids": [(0, 0, {"name": cls.partner.id})],
"seller_ids": [(0, 0, {"partner_id": cls.partner.id})],
}
)
cls.purchase = cls.env["purchase.order"].create(
Expand Down Expand Up @@ -84,8 +84,8 @@ def test_purchase_order_invoicing(self):
invoice = self.env["account.move"].create(
{"partner_id": self.partner.id, "move_type": "in_invoice"}
)
with Form(invoice) as inv:
inv.purchase_id = self.purchase
invoice.purchase_id = self.purchase
invoice._onchange_purchase_auto_complete()
self.assertEqual(
self.purchase.invoice_ids[0].payment_mode_id, self.payment_mode
)
Expand Down

0 comments on commit f90f230

Please sign in to comment.