From 5a9fff4f6d915a0f3a772c252670eb9291ce994f 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 | 16 ++++++++++++++++ l10n_it_riba/wizard/wizard_past_due.py | 2 -- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 l10n_it_riba/readme/CONTRIBUTORS.rst diff --git a/l10n_it_riba/models/riba_config.py b/l10n_it_riba/models/riba_config.py index 06636028f3a0..7dbfae2ade15 100644 --- a/l10n_it_riba/models/riba_config.py +++ b/l10n_it_riba/models/riba_config.py @@ -58,7 +58,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( @@ -70,7 +69,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 new file mode 100644 index 000000000000..cbe6db590583 --- /dev/null +++ b/l10n_it_riba/readme/CONTRIBUTORS.rst @@ -0,0 +1,16 @@ +* Lorenzo Battistini +* Andrea Cometa +* Andrea Gallina +* Davide Corio +* Giacomo Grasso +* Gabriele Baldessari +* Alex Comba +* Marco Calcagni +* Sergio Zanchetta +* Simone Vanin +* Sergio Corato +* Giovanni Serra +* `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(