From dff06e82b371c8b9610b7f4c5bfdf35fee3b7d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20T=C3=B3th?= Date: Fri, 3 Apr 2020 19:06:48 +0000 Subject: [PATCH] [FIX] account.invoice: leftovers of the state / invoice_payment_state refactoring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this fixes bugs introduced by https://github.com/odoo/odoo/commit/beaa30a3d1843de43a45f419bfbc1bfa7613a920 in saas-13.2, the field invoice_payment_state was renamed into payment_state by https://github.com/odoo/odoo/commit/8e4158af810bcf475214946fa64d3b0ce4d3b26d in saas-13.4, the feature post_at of journal have been removed by https://github.com/odoo/odoo/commit/caeb782841fc5a7ad71a196e2c9ee67644ef9074 closes odoo/odoo#49569 X-original-commit: 2001c413ee142c50ca6549cd5dff9fc0f9f1637b Signed-off-by: Csaba Tóth Signed-off-by: Quentin De Paoli (qdp) --- addons/account/views/account_portal_templates.xml | 10 +++++----- .../data/gamification_sale_crm_data.xml | 4 ++-- addons/l10n_in/views/report_invoice.xml | 2 +- .../report/crm_partner_report.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/addons/account/views/account_portal_templates.xml b/addons/account/views/account_portal_templates.xml index 620c4ff33e5..d119735e37a 100644 --- a/addons/account/views/account_portal_templates.xml +++ b/addons/account/views/account_portal_templates.xml @@ -6,7 +6,7 @@ Invoices & Bills @@ -47,17 +47,17 @@ - + Draft Invoice - + Waiting for Payment - + Paid @@ -89,7 +89,7 @@ -
+
diff --git a/addons/gamification_sale_crm/data/gamification_sale_crm_data.xml b/addons/gamification_sale_crm/data/gamification_sale_crm_data.xml index 791d862726c..1130417b66e 100644 --- a/addons/gamification_sale_crm/data/gamification_sale_crm_data.xml +++ b/addons/gamification_sale_crm/data/gamification_sale_crm_data.xml @@ -76,7 +76,7 @@ orders - [('state','=','paid'),('invoice_user_id','=',user.id),('move_type','=','out_invoice')] + [('payment_state','=','paid'),('invoice_user_id','=',user.id),('move_type','=','out_invoice')] Total Paid Sales Orders @@ -86,7 +86,7 @@ - [('state','=','paid'),('invoice_user_id','=',user.id),('move_type','=','out_invoice')] + [('payment_state','=','paid'),('invoice_user_id','=',user.id),('move_type','=','out_invoice')] diff --git a/addons/l10n_in/views/report_invoice.xml b/addons/l10n_in/views/report_invoice.xml index 0856519ad66..15aa1e270dd 100644 --- a/addons/l10n_in/views/report_invoice.xml +++ b/addons/l10n_in/views/report_invoice.xml @@ -26,7 +26,7 @@

- + Draft Cancelled Credit Note diff --git a/addons/website_crm_partner_assign/report/crm_partner_report.py b/addons/website_crm_partner_assign/report/crm_partner_report.py index 1d7fdb67b41..653a0d5db13 100644 --- a/addons/website_crm_partner_assign/report/crm_partner_report.py +++ b/addons/website_crm_partner_assign/report/crm_partner_report.py @@ -54,5 +54,5 @@ class CrmPartnerReportAssign(models.Model): FROM res_partner p left join account_invoice_report i - on (i.partner_id=p.id and i.move_type in ('out_invoice','out_refund') and i.state in ('open','in_payment','paid')) + on (i.partner_id=p.id and i.move_type in ('out_invoice','out_refund') and i.state='open') )""")