From 673ef2eb3ae97d6b0ef130a5cdc27736d8477179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 30 Apr 2018 15:48:54 +0200 Subject: [PATCH] Allow to edit maturity date and tax lines Tax line modification is managed by the TaxLine model and the maturity date is a business field. issue7276 review42011002 --- move.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/move.py b/move.py index 3e5ccc7473..a4cf05c44d 100644 --- a/move.py +++ b/move.py @@ -635,7 +635,6 @@ class Line(ModelSQL, ModelView): party_required = fields.Function(fields.Boolean('Party Required'), 'on_change_with_party_required') maturity_date = fields.Date('Maturity Date', - states=_states, depends=_depends, help='This field is used for payable and receivable lines. \n' 'You can put the limit date for the payment.') state = fields.Selection([ @@ -668,7 +667,8 @@ class Line(ModelSQL, ModelView): @classmethod def __setup__(cls): super(Line, cls).__setup__() - cls._check_modify_exclude = {'reconciliation'} + cls._check_modify_exclude = { + 'maturity_date', 'reconciliation', 'tax_lines'} cls._reconciliation_modify_disallow = { 'account', 'debit', 'credit', 'party', }