From b20dd676fbbfc503316b3fea9e76d5d5517b3869 Mon Sep 17 00:00:00 2001 From: odooNextev Date: Mon, 5 Feb 2024 17:06:18 +0100 Subject: [PATCH] [FIX] l10n_it_riba: remove account and journal domain --- l10n_it_riba/models/riba_config.py | 2 -- l10n_it_riba/readme/CONTRIBUTORS.rst | 1 + l10n_it_riba/wizard/wizard_past_due.py | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/l10n_it_riba/models/riba_config.py b/l10n_it_riba/models/riba_config.py index 989148962c5b..419b4ef0e6e2 100644 --- a/l10n_it_riba/models/riba_config.py +++ b/l10n_it_riba/models/riba_config.py @@ -59,7 +59,6 @@ class RibaConfiguration(models.Model): bank_account_id = fields.Many2one( "account.account", "A/C Bank Account", - domain=[("account_type", "=", "asset_cash")], ) bank_expense_account_id = fields.Many2one("account.account", "Bank Fees Account") past_due_journal_id = fields.Many2one( @@ -71,7 +70,6 @@ class RibaConfiguration(models.Model): overdue_effects_account_id = fields.Many2one( "account.account", "Past Due Bills Account", - domain=[("account_type", "=", "asset_receivable")], ) protest_charge_account_id = fields.Many2one( "account.account", "Protest Fee Account" diff --git a/l10n_it_riba/readme/CONTRIBUTORS.rst b/l10n_it_riba/readme/CONTRIBUTORS.rst index 9c4683bbfedf..cbe6db590583 100644 --- a/l10n_it_riba/readme/CONTRIBUTORS.rst +++ b/l10n_it_riba/readme/CONTRIBUTORS.rst @@ -13,3 +13,4 @@ * `Aion Tech `_: * Simone Rubino +* Nextev Srl diff --git a/l10n_it_riba/wizard/wizard_past_due.py b/l10n_it_riba/wizard/wizard_past_due.py index 7cf4216b41d1..15b5d09b9996 100644 --- a/l10n_it_riba/wizard/wizard_past_due.py +++ b/l10n_it_riba/wizard/wizard_past_due.py @@ -65,7 +65,6 @@ def _get_bank_expense_account_id(self): effects_account_id = fields.Many2one( "account.account", "Bills Account", - domain=[("account_type", "=", "asset_receivable")], default=_get_effects_account_id, ) effects_amount = fields.Float("Bills Amount", default=_get_effects_amount) @@ -76,7 +75,6 @@ def _get_bank_expense_account_id(self): overdue_effects_account_id = fields.Many2one( "account.account", "Past Due Bills Account", - domain=[("account_type", "=", "asset_receivable")], default=_get_overdue_effects_account_id, ) overdue_effects_amount = fields.Float(