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