Skip to content

Commit ad1b75d

Browse files
author
Rebeca Martín
committed
[FIX] views: replace has-class with contains(@Class) for lxml compatibility
1 parent 0db6c54 commit ad1b75d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

product_supplierinfo_disable_autocreation/views/res_config_settings_views.xml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,13 @@ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
1515
ref="purchase.res_config_settings_view_form_purchase"
1616
/>
1717
<field name="arch" type="xml">
18-
<xpath
19-
expr="//div[has-class('o_setting_box')][.//field[@name='lock_confirmed_po']]"
20-
position="after"
21-
>
22-
<div
23-
class="col-12 col-lg-6 o_setting_box"
24-
id="purchase_pricelist_disable_autocreate_setting"
25-
>
18+
<xpath expr="//div[contains(@class, 'o_setting_box')][.//field[@name='lock_confirmed_po']]" position="after">
19+
<div class="col-12 col-lg-6 o_setting_box" id="purchase_pricelist_disable_autocreate_setting">
2620
<div class="o_setting_left_pane">
27-
<field name="purchase_pricelist_disable_autocreate" />
21+
<field name="purchase_pricelist_disable_autocreate"/>
2822
</div>
2923
<div class="o_setting_right_pane">
30-
<label for="purchase_pricelist_disable_autocreate" />
24+
<label for="purchase_pricelist_disable_autocreate"/>
3125
<div class="text-muted">
3226
Automatically create supplier pricelists when validating purchase orders
3327
</div>

0 commit comments

Comments
 (0)