From 89f81053cd85fa1e0693902db2f7be0cbcd8e9ff Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Mon, 12 Feb 2024 11:51:15 +0100 Subject: [PATCH 1/2] [IMP] account_invoice_update_wizard : rename button for accounting entries + hide invoice specific fields in case of accountring entries --- account_invoice_update_wizard/views/account_move.xml | 3 ++- .../wizard/account_move_update_view.xml | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/account_invoice_update_wizard/views/account_move.xml b/account_invoice_update_wizard/views/account_move.xml index b142b8b..4e6ae5b 100644 --- a/account_invoice_update_wizard/views/account_move.xml +++ b/account_invoice_update_wizard/views/account_move.xml @@ -11,7 +11,8 @@ diff --git a/account_invoice_update_wizard/wizard/account_move_update_view.xml b/account_invoice_update_wizard/wizard/account_move_update_view.xml index d253370..2149860 100644 --- a/account_invoice_update_wizard/wizard/account_move_update_view.xml +++ b/account_invoice_update_wizard/wizard/account_move_update_view.xml @@ -17,11 +17,12 @@ - + + - - + + @@ -30,8 +31,8 @@ - - + + From 46f2e0e01d87f3009ba822b577bbde0efb805578 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Mon, 11 Mar 2024 12:29:35 +0100 Subject: [PATCH 2/2] [IMP] Add bill date (for supplier invoice) and rename bill ref to supplier bill ref to be consistent with name in invoice --- account_invoice_update_wizard/wizard/account_move_update.py | 3 ++- .../wizard/account_move_update_view.xml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/account_invoice_update_wizard/wizard/account_move_update.py b/account_invoice_update_wizard/wizard/account_move_update.py index 98c0ba3..ea59e8f 100644 --- a/account_invoice_update_wizard/wizard/account_move_update.py +++ b/account_invoice_update_wizard/wizard/account_move_update.py @@ -21,6 +21,7 @@ class AccountMoveUpdate(models.TransientModel): invoice_payment_term_id = fields.Many2one( 'account.payment.term', string='Payment Term') ref = fields.Char(string='Reference') # field label is customized in the view + invoice_date = fields.Date() invoice_origin = fields.Char(string='Source Document') partner_bank_id = fields.Many2one( 'res.partner.bank', string='Bank Account') @@ -30,7 +31,7 @@ class AccountMoveUpdate(models.TransientModel): @api.model def _simple_fields2update(self): '''List boolean, date, datetime, char, text fields''' - return ['ref', 'invoice_origin'] + return ['ref', 'invoice_origin', 'invoice_date'] @api.model def _m2o_fields2update(self): diff --git a/account_invoice_update_wizard/wizard/account_move_update_view.xml b/account_invoice_update_wizard/wizard/account_move_update_view.xml index 2149860..f772cdd 100644 --- a/account_invoice_update_wizard/wizard/account_move_update_view.xml +++ b/account_invoice_update_wizard/wizard/account_move_update_view.xml @@ -15,7 +15,8 @@ - + +