From 168208f2f9f6187b0ecf8ea80087fc8ec118041c Mon Sep 17 00:00:00 2001 From: ?ngel ?lvarez Date: Tue, 25 Dec 2018 10:25:20 +0100 Subject: [PATCH] no check if no modified_fields --- account.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/account.py b/account.py index 47a67c5..c9f7c50 100644 --- a/account.py +++ b/account.py @@ -197,6 +197,17 @@ class MoveLine(metaclass=PoolMeta): 'hierarchies.'), }) + + @classmethod + def check_modify(cls, lines, modified_fields=None): + ''' + Check if the lines can be modified + ''' + if modified_fields is None: + return + + super(MoveLine, cls).check_modify(lines, modified_fields) + @classmethod def validate(cls, lines): super(MoveLine, cls).validate(lines)