[FIX] account: typo for return default_account_id value

closes odoo/odoo#64739

X-original-commit: 5495808c6504b3c8a026be92e53bb62326a1164f
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
Jalpesh Patel
2021-01-19 10:10:57 +00:00
parent 12004c5665
commit 66637644ea
+3 -2
View File
@@ -678,13 +678,14 @@ class AccountJournal(models.Model):
a logic based on accounts.
:param domain: An additional domain to be applied on the account.move.line model.
:return: The balance expressed in the journal's currency.
:return: Tuple having balance expressed in journal's currency
along with the total number of move lines having the same account as of the journal's default account.
'''
self.ensure_one()
self.env['account.move.line'].check_access_rights('read')
if not self.default_account_id:
return 0.0
return 0.0, 0
domain = (domain or []) + [
('account_id', 'in', tuple(self.default_account_id.ids)),