[FIX] portal: remove condition for customer details breaking tests

Original commit e38de9dfa4 is about CSS classes and state code
update. It is not clear why hiding Your Details in some cases improve the
state code update. Forward port 017ee5eab3 broke 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:
Thibault Delavallée
2017-08-24 17:08:37 +02:00
parent f056caa911
commit 8b384ae612
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -134,7 +134,6 @@ class CustomerPortal(Controller):
values.update({
'error': {},
'error_message': [],
'hide_current_user': True,
})
if post:
+1 -1
View File
@@ -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>