Skip to content

Commit

Permalink
[MIG] account_debt_report: Migration to 16.0
Browse files Browse the repository at this point in the history
closes #402

Signed-off-by: Ignacio Cainelli <ica@adhoc.com.ar>
  • Loading branch information
docker-odoo authored and pablohmontenegro committed Apr 5, 2023
1 parent d97db4f commit fd09828
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions account_debt_report/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Account Debt Report',
'version': "15.0.1.0.0",
'version': "16.0.1.0.0",
'category': 'Account Reporting',
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
Expand All @@ -38,5 +38,5 @@
],
'test': [
],
'installable': False,
'installable': True,
}
6 changes: 3 additions & 3 deletions account_debt_report/models/res_partner.py
Expand Up @@ -57,11 +57,11 @@ def get_line_vals(
balance_field = 'balance'

if result_selection == 'receivable':
domain += [('account_internal_type', '=', 'receivable')]
domain += [('account_type', '=', 'asset_receivable')]
elif result_selection == 'payable':
domain += [('account_internal_type', '=', 'payable')]
domain += [('account_type', '=', 'liability_payable')]
else:
domain += [('account_internal_type', 'in', ['receivable', 'payable'])]
domain += [('account_type', 'in', ['asset_receivable', 'liability_payable'])]

domain += [('partner_id', '=', self.id), ('parent_state', '=', 'posted')]

Expand Down

0 comments on commit fd09828

Please sign in to comment.