mirror of
https://github.com/NaN-tic/trytond-account_invoice_rule.git
synced 2023-12-14 03:03:05 +01:00
Add missing _parent_rule.company to depends.
This commit is contained in:
parent
a9ab6e1a7b
commit
98ed80f481
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ class AccountInvoiceAccountRuleLine(ModelSQL, ModelView, MatchMixin):
|
|||
return True
|
||||
return False
|
||||
|
||||
@fields.depends('rule')
|
||||
def on_change_with_company(self, name="None"):
|
||||
@fields.depends('rule', '_parent_rule.company')
|
||||
def on_change_with_company(self, name=None):
|
||||
if self.rule:
|
||||
return self.rule.company.id
|
||||
return Transaction().context.get('company') or None
|
||||
|
|
Loading…
Reference in a new issue