diff --git a/addons/website_event_booth/controllers/event_booth.py b/addons/website_event_booth/controllers/event_booth.py
index f78a2273ab0..9c850c06d65 100644
--- a/addons/website_event_booth/controllers/event_booth.py
+++ b/addons/website_event_booth/controllers/event_booth.py
@@ -58,7 +58,7 @@ class WebsiteEventBoothController(WebsiteEventController):
default_contact = {
'name': request.env.user.partner_id.name,
'email': request.env.user.partner_id.email,
- 'phone': request.env.user.partner_id.phone,
+ 'phone': request.env.user.partner_id.phone or request.env.user.partner_id.mobile,
'mobile': request.env.user.partner_id.mobile,
}
else:
@@ -128,16 +128,13 @@ class WebsiteEventBoothController(WebsiteEventController):
partner.name = kwargs['contact_name']
if not partner.phone and kwargs.get('contact_phone'):
partner.phone = kwargs['contact_phone']
- if not partner.mobile and kwargs.get('contact_mobile'):
- partner.mobile = kwargs['contact_mobile']
else:
partner = request.env.user.partner_id
return {
'partner_id': partner.id,
'contact_name': kwargs.get('contact_name') or partner.name,
'contact_email': kwargs.get('contact_email') or partner.email,
- 'contact_mobile': kwargs.get('contact_mobile') or partner.mobile,
- 'contact_phone': kwargs.get('contact_phone') or partner.phone,
+ 'contact_phone': kwargs.get('contact_phone') or partner.phone or partner.mobile,
}
def _prepare_booth_registration_success_values(self, event_name, booth_values):
@@ -148,7 +145,6 @@ class WebsiteEventBoothController(WebsiteEventController):
'name': booth_values.get('contact_name'),
'email': booth_values.get('contact_email'),
'phone': booth_values.get('contact_phone'),
- 'mobile': booth_values.get('contact_mobile'),
},
})
diff --git a/addons/website_event_booth/views/event_booth_registration_templates.xml b/addons/website_event_booth/views/event_booth_registration_templates.xml
index 8ba5d522caf..24b014d5ce9 100644
--- a/addons/website_event_booth/views/event_booth_registration_templates.xml
+++ b/addons/website_event_booth/views/event_booth_registration_templates.xml
@@ -44,13 +44,6 @@
t-att-value="default_contact.get('phone', '')"/>
-
diff --git a/addons/website_event_booth_exhibitor/controllers/event_booth.py b/addons/website_event_booth_exhibitor/controllers/event_booth.py
index 23ed74cce01..9643f5fe57d 100644
--- a/addons/website_event_booth_exhibitor/controllers/event_booth.py
+++ b/addons/website_event_booth_exhibitor/controllers/event_booth.py
@@ -15,8 +15,6 @@ class WebsiteEventBoothController(WebsiteEventController):
booth_values['contact_email'] = kwargs.get('sponsor_email')
if not booth_values.get('contact_name'):
booth_values['contact_name'] = kwargs.get('sponsor_name')
- if not booth_values.get('contact_mobile'):
- booth_values['contact_mobile'] = kwargs.get('sponsor_mobile')
if not booth_values.get('contact_phone'):
booth_values['contact_phone'] = kwargs.get('sponsor_phone')
@@ -36,7 +34,7 @@ class WebsiteEventBoothController(WebsiteEventController):
sponsor_values = {
'sponsor_name': kwargs.get('sponsor_name') or booth_values.get('contact_name'),
'sponsor_email': kwargs.get('sponsor_email') or booth_values.get('contact_email'),
- 'sponsor_mobile': kwargs.get('sponsor_mobile') or booth_values.get('contact_mobile'),
+ 'sponsor_mobile': kwargs.get('sponsor_mobile') or booth_values.get('contact_phone'),
'sponsor_phone': kwargs.get('sponsor_phone') or booth_values.get('contact_phone'),
'sponsor_subtitle': kwargs.get('sponsor_slogan'),
'sponsor_website_description': plaintext2html(kwargs.get('sponsor_description')) if kwargs.get('sponsor_description') else '',