[FIX] partner_profile: change way to modify the partner name field

in the partner form view
This commit is contained in:
Stéphan Sainléger
2023-01-05 23:41:23 +01:00
parent be490f38de
commit 0e29ec7dd4
2 changed files with 2 additions and 3 deletions

View File

@@ -10,8 +10,7 @@
<!-- ################### -->
<!-- MAIN DISPLAY UPDATE -->
<!-- ################### -->
<xpath expr="//field[@name='name']" position="replace">
<field name="name" default_focus="1" placeholder="Administrative Name" required="True" widget="field_partner_autocomplete" />
<xpath expr="//field[@name='name']" position="after">
<p class="oe_read_only" style="font-size:small; font-style:italic"
attrs="{'invisible': [('is_main_profile','=',False)]}">Main Profile</p>
<p class="oe_read_only" style="font-size:small; font-style:italic"