Browse Source

[IMP] make email and name read only

pull/52/head
houssine 4 years ago
parent
commit
cb5283621c
  1. 6
      easy_my_coop_website_portal/views/easy_my_coop_website_portal_templates.xml

6
easy_my_coop_website_portal/views/easy_my_coop_website_portal_templates.xml

@ -7,6 +7,12 @@
-->
<odoo>
<template id="portal_my_details_emc" inherit_id="portal.portal_my_details" name="Portal user details">
<input name="name" position="attributes">
<attribute name="t-att-readonly">True</attribute>
</input>
<input name="email" position="attributes">
<attribute name="t-att-readonly">True</attribute>
</input>
<xpath expr="//input[@name='phone']/.." position="after">
<div t-attf-class="form-group #{error.get('gender') and 'o_has_error' or ''} col-xl-6">
<label class="col-form-label" for="gender">Gender</label>

Loading…
Cancel
Save