Skip to content

Commit

Permalink
[16.0][MIG] purchase_allowed_product: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoRomera committed Dec 19, 2022
1 parent 9c9b236 commit fd943f2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions purchase_allowed_product/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"name": "Purchase and Invoice Allowed Product",
"summary": "This module allows to select only products that can be "
"supplied by the vendor",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/purchase-workflow",
"author": "Akretion, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["purchase"],
"data": [
"views/res_partner_view.xml",
"views/res_partner_views.xml",
"views/account_move_views.xml",
"views/purchase_order_view.xml",
"views/purchase_order_views.xml",
],
"installable": True,
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_purchase_onchange(self):
"restrict_supplier_id": purchase_form.partner_id.id,
"use_only_supplied_product": purchase_form.use_only_supplied_product,
}
supplied_product = self.product_model.with_context(context)._search([])
supplied_product = self.product_model.with_context(**context)._search([])
self.assertEqual(
set(supplied_product), set(self.partner_4_supplied_products.ids)
)
Expand All @@ -69,7 +69,7 @@ def test_invoice_onchange(self):
"restrict_supplier_id": invoice_form.partner_id.id,
"use_only_supplied_product": invoice_form.use_only_supplied_product,
}
supplied_product = self.product_model.with_context(context)._search([])
supplied_product = self.product_model.with_context(**context)._search([])
self.assertEqual(
set(supplied_product), set(self.partner_4_supplied_products.ids)
)

0 comments on commit fd943f2

Please sign in to comment.