From f8d351aa43cf51ba0f71e43169e2d5da419f225e Mon Sep 17 00:00:00 2001 From: "Valentin Vallaeys (vava)" Date: Wed, 23 Aug 2023 08:47:03 +0000 Subject: [PATCH] [FIX] *: fix domain definition (not) in operator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * account, account_peppol, purchase_requisition, stock_delivery, base There are some conditions in xml that uses `in` or `not in` for a check with a string. These are replaced by `==` or `!=` operators, respectively. closes odoo/odoo#132798 Signed-off-by: Rémy Voet (ryv) --- addons/account/views/account_move_views.xml | 2 +- addons/account_peppol/views/res_config_settings_views.xml | 2 +- .../purchase_requisition/views/purchase_requisition_views.xml | 2 +- addons/stock_delivery/views/delivery_view.xml | 4 ++-- odoo/addons/base/wizard/base_partner_merge_views.xml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index da699d5bb3e..cf7be8c2eed 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -437,7 +437,7 @@ decoration-danger="payment_state == 'not_paid'" decoration-warning="payment_state in ('partial', 'in_payment')" decoration-success="payment_state in ('paid', 'reversed')" - invisible="payment_state in 'invoicing_legacy' or state != 'posted' or move_type == 'entry'" + invisible="payment_state == 'invoicing_legacy' or state != 'posted' or move_type == 'entry'" optional="show"/> diff --git a/addons/account_peppol/views/res_config_settings_views.xml b/addons/account_peppol/views/res_config_settings_views.xml index afe437ef600..42b63011110 100644 --- a/addons/account_peppol/views/res_config_settings_views.xml +++ b/addons/account_peppol/views/res_config_settings_views.xml @@ -64,7 +64,7 @@ required="is_account_peppol_participant"/>
+ invisible="account_peppol_proxy_state != 'not_registered' or not is_account_peppol_participant"> I want to migrate my Peppol connection to Odoo (optional): diff --git a/addons/purchase_requisition/views/purchase_requisition_views.xml b/addons/purchase_requisition/views/purchase_requisition_views.xml index 155054ebfc0..5747b20a3b1 100644 --- a/addons/purchase_requisition/views/purchase_requisition_views.xml +++ b/addons/purchase_requisition/views/purchase_requisition_views.xml @@ -145,7 +145,7 @@ - + diff --git a/addons/stock_delivery/views/delivery_view.xml b/addons/stock_delivery/views/delivery_view.xml index dc7b28c9e26..e81a8c4dd87 100644 --- a/addons/stock_delivery/views/delivery_view.xml +++ b/addons/stock_delivery/views/delivery_view.xml @@ -25,7 +25,7 @@