Skip to content

Commit c7bb7b7

Browse files
committed
[MIG] website_whatsapp: Migration to 18.0
1 parent 882da5c commit c7bb7b7

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

website_whatsapp/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Website Whatsapp",
55
"summary": "Whatsapp integration",
66
"category": "Website",
7-
"version": "16.0.1.0.1",
7+
"version": "18.0.1.0.0",
88
"website": "https://github.com/OCA/website",
99
"author": "Studio73, Odoo Community Association (OCA)",
1010
"maintainers": ["ioans73"],

website_whatsapp/views/res_config_settings.xml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,19 @@
44
<field name="model">res.config.settings</field>
55
<field name="inherit_id" ref="website.res_config_settings_view_form" />
66
<field name="arch" type="xml">
7-
<xpath expr="//div[@id='website_email_marketing']" position="inside">
8-
<div
9-
class="col-12 col-lg-6 o_setting_box"
10-
id="website_whatsapp_setting"
11-
>
12-
<div class="o_setting_left_pane">
7+
<xpath expr="//block[@id='website_email_marketing']" position="inside">
8+
<setting class="col-12 col-lg-6" id="website_whatsapp_setting">
9+
<div>
1310
<field name="whatsapp_enabled" />
1411
</div>
15-
<div class="o_setting_right_pane">
12+
<div>
1613
<label for="whatsapp_enabled" />
1714
<span
1815
class="fa fa-lg fa-globe"
1916
title="Values set here are website-specific."
2017
groups="website.group_multi_website"
2118
/>
22-
<div
23-
class="content-group"
24-
attrs="{'invisible': [('whatsapp_enabled', '=', False)]}"
25-
>
19+
<div class="content-group" invisible="not whatsapp_enabled">
2620
<div class="text-muted">
2721
You must add the mobile number with the country prefix
2822
</div>
@@ -33,7 +27,7 @@
3327
/>
3428
<field
3529
name="whatsapp_number"
36-
attrs="{'required': [('whatsapp_enabled', '=', True)]}"
30+
required="whatsapp_enabled"
3731
/>
3832
</div>
3933
<div class="row">
@@ -52,7 +46,7 @@
5246
</div>
5347
</div>
5448
</div>
55-
</div>
49+
</setting>
5650
</xpath>
5751
</field>
5852
</record>

0 commit comments

Comments
 (0)