From bb015d28f6b7da49e88ddf8ab314dedcb7bc6a4b Mon Sep 17 00:00:00 2001 From: Eduard Brahas Date: Mon, 25 Nov 2024 17:09:13 +0100 Subject: [PATCH] [IMP]l10n_it_ricevute_bancarie: improvements for is_unsolved field - Changed placement to see the label better - When a invoice is duplicated the field is set to false. This behavior that was not present before this commit --- l10n_it_riba/models/account.py | 1 + l10n_it_riba/views/account_view.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/l10n_it_riba/models/account.py b/l10n_it_riba/models/account.py index 8e88ffc70eb1..7df2bcc1e1f6 100644 --- a/l10n_it_riba/models/account.py +++ b/l10n_it_riba/models/account.py @@ -347,6 +347,7 @@ def copy(self, default=None): invoice._sync_dynamic_lines( container={"records": invoice, "self": invoice} ) + invoice.is_unsolved = False return invoice def get_due_cost_line_ids(self): diff --git a/l10n_it_riba/views/account_view.xml b/l10n_it_riba/views/account_view.xml index b2afd8326cda..2c64e3022e02 100644 --- a/l10n_it_riba/views/account_view.xml +++ b/l10n_it_riba/views/account_view.xml @@ -149,6 +149,9 @@ attrs="{'invisible': ['|',('is_riba_payment','=', False),('move_type','!=','out_invoice')], 'required': ['&',('is_riba_payment','=', True),('move_type','=', 'out_invoice')]}" domain="[('partner_id','=', commercial_partner_id)]" /> + + +