From e8ff3bf2b26c3b4e95566e75f58a7ad2300698fa Mon Sep 17 00:00:00 2001 From: Denis Vermylen Date: Wed, 4 Jan 2017 15:14:40 +0100 Subject: [PATCH] [IMP] sale: rename field quick quick before the feeze (saas-14)! to_invoice_ unnecessarily added to the field names. --- addons/sale/models/sales_team.py | 8 ++++---- addons/sale/views/sales_team_views.xml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/sale/models/sales_team.py b/addons/sale/models/sales_team.py index c2b336273b4..a4d729634cc 100644 --- a/addons/sale/models/sales_team.py +++ b/addons/sale/models/sales_team.py @@ -21,10 +21,10 @@ class CrmTeam(models.Model): string='Invoicing Target', help="Target of invoice revenue for the current month. This is the amount the sales " "channel estimates to be able to invoice this month.") - quotations_to_invoice_count = fields.Integer( + quotations_count = fields.Integer( compute='_compute_quotations_to_invoice', string='Number of quotations to invoice', readonly=True) - quotations_to_invoice_amount = fields.Integer( + quotations_amount = fields.Integer( compute='_compute_quotations_to_invoice', string='Amount of quotations to invoice', readonly=True) sales_to_invoice_count = fields.Integer( @@ -41,8 +41,8 @@ class CrmTeam(models.Model): ('state', 'in', ['draft', 'sent']), ], ['price_total', 'team_id', 'name'], ['team_id', 'name'], lazy=False) for rec in amounts: - self.browse(rec['team_id'][0]).quotations_to_invoice_amount += rec['price_total'] - self.browse(rec['team_id'][0]).quotations_to_invoice_count += 1 + self.browse(rec['team_id'][0]).quotations_amount += rec['price_total'] + self.browse(rec['team_id'][0]).quotations_count += 1 @api.multi def _compute_sales_to_invoice(self): diff --git a/addons/sale/views/sales_team_views.xml b/addons/sale/views/sales_team_views.xml index c6ec7fb6b27..43439e8f277 100644 --- a/addons/sale/views/sales_team_views.xml +++ b/addons/sale/views/sales_team_views.xml @@ -62,16 +62,16 @@ -