diff --git a/account_invoice_overdue_warn_sale/README.rst b/account_invoice_overdue_warn_sale/README.rst index 5723adb4f..a067e2e8a 100644 --- a/account_invoice_overdue_warn_sale/README.rst +++ b/account_invoice_overdue_warn_sale/README.rst @@ -33,7 +33,9 @@ when the invoicing partner has overdue invoices. The banner informs the user about the number of overdue invoices and the total overdue amount. It contains a link to see the corresponding overdue invoices. -|image1| +.. figure:: https://raw.githubusercontent.com/OCA/credit-control/17.0/account_invoice_overdue_warn/static/description/sale_order_overdue_invoice_warn.png + :scale: 80 % + :alt: Screenshot of partner form view This module depends on the module *account_invoice_overdue_warn* which adds the same banner on the form view of partners. diff --git a/account_invoice_overdue_warn_sale/__manifest__.py b/account_invoice_overdue_warn_sale/__manifest__.py index 600d2a84a..c86cde4e9 100644 --- a/account_invoice_overdue_warn_sale/__manifest__.py +++ b/account_invoice_overdue_warn_sale/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Warning on Overdue Invoices - Sale", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "category": "Sales/Sales", "license": "AGPL-3", "summary": "Show overdue warning on sale order form view", diff --git a/account_invoice_overdue_warn_sale/views/sale_order.xml b/account_invoice_overdue_warn_sale/views/sale_order.xml index f18b45679..14700c4d9 100644 --- a/account_invoice_overdue_warn_sale/views/sale_order.xml +++ b/account_invoice_overdue_warn_sale/views/sale_order.xml @@ -14,7 +14,7 @@ class="alert alert-warning" role="alert" groups="account.group_account_invoice,account.group_account_readonly" - attrs="{'invisible': [('overdue_invoice_count', '=', 0)]}" + invisible="overdue_invoice_count == 0" > The invoicing partner