Clear move line party if account doesn't allow to have a party

issue4474
review10791002
This commit is contained in:
Sergi Almacellas Abellana committed 2015-01-14 18:53:26 +01:00
1 parent 629bcbe163
commit a10c56e0b6
1 file changed
+2
+2
View File
@@ -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):