[FIX] portal: remove condition for customer details breaking tests
Original commite38de9dfa4is about CSS classes and state code update. It is not clear why hiding Your Details in some cases improve the state code update. Forward port017ee5eab3broke the customer portal display using this condition. This commit fixes the customer portal by removing the condition. Second part of the original fix that was about using a correct base layout to render the your details page is already done in master since the customer portal cleaning.
This commit is contained in:
@@ -134,7 +134,6 @@ class CustomerPortal(Controller):
|
||||
values.update({
|
||||
'error': {},
|
||||
'error_message': [],
|
||||
'hide_current_user': True,
|
||||
})
|
||||
|
||||
if post:
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
<div class="o_my_contact" t-if="sales_user">
|
||||
<t t-call="portal.portal_contact"/>
|
||||
</div>
|
||||
<div class="o_portal_my_details" t-if="not hide_current_user and user">
|
||||
<div class="o_portal_my_details">
|
||||
<h3 class="page-header">Your Details <a href="/my/account" class="btn btn-default btn-xs">Change</a></h3>
|
||||
<div t-field="user_id.partner_id" t-options='{"widget": "contact", "fields": ["email", "phone", "address", "name"]}'/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user