Browse Source

[IMP] deactivate create in many2one field partner_id_to

pull/1/head
houssine 6 years ago
parent
commit
df4381510c
  1. 2
      easy_my_coop/view/operation_request_view.xml

2
easy_my_coop/view/operation_request_view.xml

@ -36,7 +36,7 @@
<field name="operation_type" attrs="{'readonly':[('state','!=','draft')]}"/> <field name="operation_type" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="receiver_not_member" attrs="{'invisible':[('operation_type','!=','transfer')]}"/> <field name="receiver_not_member" attrs="{'invisible':[('operation_type','!=','transfer')]}"/>
<field name="partner_id" options="{'no_create':True}" attrs="{'readonly':[('state','!=','draft')]}"/> <field name="partner_id" options="{'no_create':True}" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="partner_id_to" attrs="{'invisible':['|',('operation_type','!=','transfer'), ('receiver_not_member','=',True)]}"/>
<field name="partner_id_to" options="{'no_create':True}" attrs="{'invisible':['|',('operation_type','!=','transfer'), ('receiver_not_member','=',True)]}"/>
</group> </group>
<group> <group>
<field name="user_id"/> <field name="user_id"/>

Loading…
Cancel
Save