[FIX] product_sale_price_from_pricelist: Fix view xpath to use group_standard_price anchor

This commit is contained in:
snt 2026-02-11 18:37:34 +01:00
parent ec9f5a572c
commit 3cb0af6a7b

View file

@ -13,23 +13,23 @@
name="readonly"
>last_purchase_price_compute_type != 'manual_update'</attribute>
</field>
<field name="standard_price" position="before">
<group
string="Automatic Price Update"
colspan="2"
invisible="last_purchase_price_compute_type != 'automatic_update'"
>
<field name="last_purchase_price_compute_type" readonly="1" />
<xpath expr="//group[@name='group_standard_price']" position="after">
<group string="Automatic Price Update">
<group>
<field name="last_purchase_price_compute_type" />
<field
name="last_purchase_price_received"
widget="monetary"
options="{'currency_field': 'currency_id', 'field_digits': True}"
readonly="1"
/>
</group>
<group>
<field name="list_price_theoritical" readonly="1" />
<field name="last_purchase_price_updated" readonly="1" />
</group>
</field>
</group>
</xpath>
</field>
</record>