Clear move line party if account doesn't allow to have a party
issue4474 review10791002
This commit is contained in:
1 parent
629bcbe163
commit
a10c56e0b6
1 file changed
+2
@@ -945,6 +945,8 @@ class Line(ModelSQL, ModelView):
|
||||
if self.account.second_currency:
|
||||
self.second_currency_digits = \
|
||||
self.account.second_currency.digits
|
||||
if not self.account.party_required:
|
||||
self.party = None
|
||||
|
||||
@fields.depends('account')
|
||||
def on_change_with_party_required(self, name=None):
|
||||
|
||||
Reference in new issue
Block a user