use property to get account payable and receivable
This commit is contained in:
parent
44221b8ffc
commit
a093f7bd92
|
@ -152,9 +152,9 @@ class Invoice:
|
||||||
_check_access=False):
|
_check_access=False):
|
||||||
party = Party(self.company.party)
|
party = Party(self.company.party)
|
||||||
if self.type == 'out':
|
if self.type == 'out':
|
||||||
return party.account_payable
|
return party.account_payable_used
|
||||||
else:
|
else:
|
||||||
return party.account_receivable
|
return party.account_receivable_used
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def intercompany_type(self):
|
def intercompany_type(self):
|
||||||
|
|
Loading…
Reference in New Issue