Browse Source

remove unused onchange

There is no until_date field on this wizard (Jordi removed it).
pull/196/head
Leonardo Pistone 9 years ago
parent
commit
4c7254e64e
  1. 9
      account_financial_report_qweb/wizard/open_invoice_wizard.py

9
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

Loading…
Cancel
Save