Browse Source

Merge pull request #120 from coopiteasy/12.0-fix-partner-view

[FIX] emc: do not use replace in views
pull/130/head
Houssine BAKKALI 4 years ago
committed by GitHub
parent
commit
8bdc200382
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      easy_my_coop/views/res_partner_view.xml

6
easy_my_coop/views/res_partner_view.xml

@ -29,6 +29,7 @@
<xpath expr="/form/sheet/group" position='before'> <xpath expr="/form/sheet/group" position='before'>
<group> <group>
<group> <group>
<field name="member" invisible="1"/>
<field name="representative" <field name="representative"
attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/> attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/>
<field name="cooperator_register_number" <field name="cooperator_register_number"
@ -64,6 +65,7 @@
</xpath> </xpath>
<page name='sales_purchases' position="after"> <page name='sales_purchases' position="after">
<field name="member" invisible="1"/>
<page string="Shares" name="share" <page string="Shares" name="share"
attrs="{'invisible':[('member','=',False)]}" attrs="{'invisible':[('member','=',False)]}"
groups="easy_my_coop.group_easy_my_coop_user"> groups="easy_my_coop.group_easy_my_coop_user">
@ -216,7 +218,9 @@
<field name="inherit_id" <field name="inherit_id"
ref="mail.res_partner_view_form_inherit_mail"/> ref="mail.res_partner_view_form_inherit_mail"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="message_follower_ids" position="replace"/>
<field name="message_follower_ids" position="attributes">
<attribute name="invisible">True</attribute>
</field>
</field> </field>
</record> </record>
</data> </data>

Loading…
Cancel
Save