[IMP] partner_profiles_portal: add odoo user in partner form view

This commit is contained in:
Stéphan Sainléger
2023-05-02 23:08:11 +02:00
committed by Stéphan Sainléger
parent bf5eeb0d32
commit bba6775f07
3 changed files with 20 additions and 2 deletions

View File

@@ -8,6 +8,11 @@
<field name="sequence">99</field>
<field name="arch" type="xml">
<!-- Main display -->
<xpath expr="//group[@name='profile_status']/field[@name='contact_id']"
position="before">
<field name="odoo_user_id" string="Associated User" readonly="1"
attrs="{'invisible': [('is_main_profile','=',False)]}" />
</xpath>
<xpath expr="//group[@name='profile_status']" position="after">
<group name="structure_access_rights"
attrs="{'invisible': ['|', ('is_position_profile','=',False), ('parent_id','=',False)]}">