[MIG] sale_exception_portal: bump version and fix test exception

This commit is contained in:
Cedric Collins
2022-01-16 23:35:16 -06:00
parent 1c8d02e628
commit 0de8e097ee
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{ {
'name': 'Sale Exception Portal', 'name': 'Sale Exception Portal',
'summary': 'Display sale exceptions on customer portal', 'summary': 'Display sale exceptions on customer portal',
'version': '14.0.1.0.0', 'version': '15.0.1.0.0',
'author': "Hibou Corp.", 'author': "Hibou Corp.",
'category': 'Sale', 'category': 'Sale',
'license': 'AGPL-3', 'license': 'AGPL-3',

View File

@@ -13,7 +13,7 @@ class TestCheckSOExceptions(TransactionCase):
'active': True, 'active': True,
'model': 'sale.order', 'model': 'sale.order',
'exception_type': 'by_py_code', 'exception_type': 'by_py_code',
'code': 'failed = sale.partner_id and sale.partner_id.id == %d' % self.azure_customer.id 'code': 'failed = object.partner_id and object.partner_id.id == %d' % self.azure_customer.id
}) })
self.sale_product = self.browse_ref('product.product_product_5') self.sale_product = self.browse_ref('product.product_product_5')