[FIX] *: fix domain definition (not) in operator

* 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) <ryv@odoo.com>
This commit is contained in:
Valentin Vallaeys (vava)
2023-08-25 13:58:46 +02:00
parent c6f8f78115
commit f8d351aa43
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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"/>
<field name="state" widget="badge" decoration-success="state == 'posted'" decoration-info="state == 'draft'" optional="show"/>
<field name="move_type" column_invisible="context.get('default_move_type', True)"/>
@@ -64,7 +64,7 @@
required="is_account_peppol_participant"/>
</div>
<div class="content-group pt-3"
invisible="account_peppol_proxy_state not in 'not_registered' or not is_account_peppol_participant">
invisible="account_peppol_proxy_state != 'not_registered' or not is_account_peppol_participant">
<span>
I want to migrate my Peppol connection to Odoo (optional):
</span>
@@ -145,7 +145,7 @@
<field name="ordering_date" readonly="state not in ('draft', 'in_progress', 'open', 'ongoing')"/>
<field name="schedule_date" readonly="state not in ('draft', 'in_progress', 'open', 'ongoing')"/>
<field name="origin" placeholder="e.g. PO0025" readonly="state != 'draft'"/>
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}" readonly="state not in 'draft'"/>
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}" readonly="state != 'draft'"/>
</group>
</group>
<notebook>
@@ -25,7 +25,7 @@
<label for="carrier_tracking_ref"/>
<div name="tracking">
<field name="carrier_tracking_ref" class="oe_inline" readonly="state in ('done', 'cancel')"/>
<button type='object' class="oi oi-arrow-right oe_link" confirm="Cancelling a delivery may not be undoable. Are you sure you want to continue?" name="cancel_shipment" string="Cancel" invisible="not carrier_tracking_ref or delivery_type in ['fixed', 'base_on_rule'] or not delivery_type or state not in 'done'"/>
<button type='object' class="oi oi-arrow-right oe_link" confirm="Cancelling a delivery may not be undoable. Are you sure you want to continue?" name="cancel_shipment" string="Cancel" invisible="not carrier_tracking_ref or delivery_type in ['fixed', 'base_on_rule'] or not delivery_type or state != 'done'"/>
</div>
<label for="weight" string="Weight"/>
<div>
@@ -44,7 +44,7 @@
invisible="not carrier_tracking_ref or not carrier_id or delivery_type == 'grid'" />
</div>
<xpath expr="/form/header/button[last()]" position="after">
<button name="send_to_shipper" string="Send to Shipper" type="object" invisible="carrier_tracking_ref or delivery_type in ['fixed', 'base_on_rule'] or not delivery_type or state not in 'done' or picking_type_code == 'incoming'" data-hotkey="shift+v"/>
<button name="send_to_shipper" string="Send to Shipper" type="object" invisible="carrier_tracking_ref or delivery_type in ['fixed', 'base_on_rule'] or not delivery_type or state != 'done' or picking_type_code == 'incoming'" data-hotkey="shift+v"/>
</xpath>
<xpath expr="/form/header/button[last()]" position="after">
<button name="print_return_label" string="Print Return Label" type="object" invisible="not is_return_picking or state == 'done' or picking_type_code != 'incoming'" data-hotkey="shift+o"/>
@@ -43,7 +43,7 @@
</group>
<separator string="Options" invisible="state not in ('option',)"/>
<group invisible="state not in ('option', 'finished')">
<field name='maximum_group' readonly="state in 'finished'"/>
<field name='maximum_group' readonly="state == 'finished'"/>
</group>
<separator string="Merge the following contacts"
invisible="state in ('option', 'finished')"/>