use property to get account payable and receivable

This commit is contained in:
?ngel ?lvarez 2019-02-14 14:34:47 +01:00
parent 44221b8ffc
commit a093f7bd92
1 changed files with 2 additions and 2 deletions

View File

@ -152,9 +152,9 @@ class Invoice:
_check_access=False):
party = Party(self.company.party)
if self.type == 'out':
return party.account_payable
return party.account_payable_used
else:
return party.account_receivable
return party.account_receivable_used
@property
def intercompany_type(self):