|
|
@ -6,11 +6,12 @@ |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<tree string="Operation requests" colors="green:state in ('approved'); blue:state in ('draft');grey: state in ('done')"> |
|
|
|
<field name="request_date"/> |
|
|
|
<field name="partner_id"/> |
|
|
|
<field name="operation_type"/> |
|
|
|
<field name="quantity"/> |
|
|
|
<field name="user_id"/> |
|
|
|
<field name="state"/> |
|
|
|
<field name="effective_date"/> |
|
|
|
<field name="partner_id"/> |
|
|
|
<field name="operation_type"/> |
|
|
|
<field name="quantity"/> |
|
|
|
<field name="user_id"/> |
|
|
|
<field name="state"/> |
|
|
|
</tree> |
|
|
|
</field> |
|
|
|
</record> |
|
|
@ -33,10 +34,11 @@ |
|
|
|
<group> |
|
|
|
<group> |
|
|
|
<field name="request_date" attrs="{'readonly':[('state','!=','draft')]}"/> |
|
|
|
<field name="effective_date" 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')],'readonly':[('state','!=','draft')]}"/> |
|
|
|
<field name="partner_id" options="{'no_create':True}" attrs="{'readonly':[('state','!=','draft')]}"/> |
|
|
|
<field name="partner_id_to" options="{'no_create':True}" 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)],'readonly':[('state','!=','draft')]}"/> |
|
|
|
</group> |
|
|
|
<group> |
|
|
|
<field name="user_id"/> |
|
|
|