Skip to content

Commit

Permalink
[FIX] l10n_it_riba: remove account and journal domain
Browse files Browse the repository at this point in the history
  • Loading branch information
odooNextev authored and sergiocorato committed Nov 25, 2024
1 parent ce388d4 commit a750e4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions l10n_it_ricevute_bancarie/models/riba_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class RibaConfiguration(models.Model):
"account.account",
"A/C Bank Account",
check_company=True,
domain="[('company_id', '=', company_id), ('internal_type', '=', 'liquidity')]",
domain="[('company_id', '=', company_id)]",
)
bank_expense_account_id = fields.Many2one("account.account", "Bank Fees Account")
unsolved_journal_id = fields.Many2one(
Expand All @@ -79,7 +79,7 @@ class RibaConfiguration(models.Model):
"account.account",
"Past Due Bills Account",
check_company=True,
domain="[('company_id', '=', company_id), ('internal_type', '=', 'receivable')]",
domain="[('company_id', '=', company_id)]",
)
protest_charge_account_id = fields.Many2one(
"account.account",
Expand Down
2 changes: 0 additions & 2 deletions l10n_it_ricevute_bancarie/wizard/wizard_unsolved.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def _get_bank_expense_account_id(self):
effects_account_id = fields.Many2one(
"account.account",
"Bills Account",
domain=[("internal_type", "=", "receivable")],
default=_get_effects_account_id,
)
effects_amount = fields.Float("Bills Amount", default=_get_effects_amount)
Expand All @@ -77,7 +76,6 @@ def _get_bank_expense_account_id(self):
overdue_effects_account_id = fields.Many2one(
"account.account",
"Past Due Bills Account",
domain=[("internal_type", "=", "receivable")],
default=_get_overdue_effects_account_id,
)
overdue_effects_amount = fields.Float(
Expand Down

0 comments on commit a750e4b

Please sign in to comment.