diff --git a/account_invoice_supplierinfo_update/tests/test_module.py b/account_invoice_supplierinfo_update/tests/test_module.py index 17097e5a277..1dc1fc9fba5 100644 --- a/account_invoice_supplierinfo_update/tests/test_module.py +++ b/account_invoice_supplierinfo_update/tests/test_module.py @@ -88,7 +88,8 @@ def test_get_the_right_variant_supplierinfo(self): ) # Set the variation 2 on the invoice and run the wizard - self.line_a.write({"product_id": product_a_2, "price_unit": 400}) + # import pdb; pdb.set_trace() + self.line_a.write({"product_id": product_a_2.id, "price_unit": 400}) vals_wizard = self.invoice.check_supplierinfo().get("context", {}) line_ids = vals_wizard.get("default_line_ids", {}) diff --git a/account_invoice_supplierinfo_update/views/account_invoice_view.xml b/account_invoice_supplierinfo_update/views/account_invoice_view.xml index 75e75e7afb6..f480de1e41b 100644 --- a/account_invoice_supplierinfo_update/views/account_invoice_view.xml +++ b/account_invoice_supplierinfo_update/views/account_invoice_view.xml @@ -11,7 +11,7 @@ help="Check if the invoice information are similar from the supplier information" class="oe_highlight" type="object" - attrs="{'invisible': ['|', ('supplierinfo_ok', '=', True), ('partner_id', '=', False)]}" + attrs="{'invisible': ['|', '|', ('supplierinfo_ok', '=', True), ('partner_id', '=', False), ('move_type', 'not in', ['in_invoice', 'in_refund'])]}" /> diff --git a/account_invoice_supplierinfo_update/wizard/wizard_update_invoice_supplierinfo.xml b/account_invoice_supplierinfo_update/wizard/wizard_update_invoice_supplierinfo.xml index 4a7b6870874..dc10c6d233d 100644 --- a/account_invoice_supplierinfo_update/wizard/wizard_update_invoice_supplierinfo.xml +++ b/account_invoice_supplierinfo_update/wizard/wizard_update_invoice_supplierinfo.xml @@ -67,7 +67,6 @@ confirm="Do you want to set invoice as checked ?" help="This will mark the invoice as checked. It will be possible to uncheck manually in the 'Other Info' tab." /> - or