You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2018 Rémy Taymans <remytaymans@gmail.com>
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <!-- Modifying the form -->
  8. <template id="website_portal_restrict_my_details"
  9. name="Website Portal Restrict Modification"
  10. inherit_id="portal.portal_my_details">
  11. <xpath expr="//input[@name='name']/.." position="before">
  12. <div class="col-lg-12">
  13. <div class="alert alert-info">
  14. <strong>Info !</strong>
  15. To modify information that cannot be edited in this form,
  16. please contact us.
  17. </div>
  18. </div>
  19. </xpath>
  20. <xpath expr="//input[@name='name']" position="attributes">
  21. <attribute name="t-att-readonly">True</attribute>
  22. </xpath>
  23. <xpath expr="//input[@name='email']" position="attributes">
  24. <attribute name="t-att-readonly">True</attribute>
  25. </xpath>
  26. <xpath expr="//input[@name='company_name']" position="attributes">
  27. <attribute name="t-att-readonly">True</attribute>
  28. </xpath>
  29. <xpath expr="//input[@name='vat']" position="attributes">
  30. <attribute name="t-att-readonly">True</attribute>
  31. </xpath>
  32. </template>
  33. </odoo>