From 4c7254e64e681f24700f15a2d3e4b035307a9efc Mon Sep 17 00:00:00 2001 From: Leonardo Pistone Date: Fri, 3 Jun 2016 15:26:27 +0200 Subject: [PATCH] remove unused onchange There is no until_date field on this wizard (Jordi removed it). --- .../wizard/open_invoice_wizard.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/account_financial_report_qweb/wizard/open_invoice_wizard.py b/account_financial_report_qweb/wizard/open_invoice_wizard.py index 57b895b5..b3fee002 100644 --- a/account_financial_report_qweb/wizard/open_invoice_wizard.py +++ b/account_financial_report_qweb/wizard/open_invoice_wizard.py @@ -6,7 +6,6 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, api -from openerp.exceptions import Warning as UserError from datetime import datetime @@ -36,14 +35,6 @@ class OpenInvoiceWizard(models.TransientModel): def onchange_atdate(self): self.until_date = self.at_date - @api.onchange('until_date') - def onchange_untildate(self): - # ---- until_date must be always >= of at_date - if self.until_date: - if self.until_date < self.at_date: - raise UserError( - 'Until Date must be equal or greater than At Date') - def _build_contexts(self, data): result = {} return result