|
@ -7,6 +7,7 @@ |
|
|
<tree string="Operation requests" |
|
|
<tree string="Operation requests" |
|
|
colors="green:state in ('approved'); blue:state in ('draft');grey: state in ('done')"> |
|
|
colors="green:state in ('approved'); blue:state in ('draft');grey: state in ('done')"> |
|
|
<field name="request_date"/> |
|
|
<field name="request_date"/> |
|
|
|
|
|
<field name="effective_date"/> |
|
|
<field name="partner_id"/> |
|
|
<field name="partner_id"/> |
|
|
<field name="operation_type"/> |
|
|
<field name="operation_type"/> |
|
|
<field name="quantity"/> |
|
|
<field name="quantity"/> |
|
@ -44,16 +45,18 @@ |
|
|
<group> |
|
|
<group> |
|
|
<field name="request_date" |
|
|
<field name="request_date" |
|
|
attrs="{'readonly':[('state','!=','draft')]}"/> |
|
|
attrs="{'readonly':[('state','!=','draft')]}"/> |
|
|
|
|
|
<field name="effective_date" |
|
|
|
|
|
attrs="{'readonly':[('state','!=','draft')]}"/> |
|
|
<field name="operation_type" |
|
|
<field name="operation_type" |
|
|
attrs="{'readonly':[('state','!=','draft')]}"/> |
|
|
attrs="{'readonly':[('state','!=','draft')]}"/> |
|
|
<field name="receiver_not_member" |
|
|
<field name="receiver_not_member" |
|
|
attrs="{'invisible':[('operation_type','!=','transfer')]}"/> |
|
|
|
|
|
|
|
|
attrs="{'invisible':[('operation_type','!=','transfer')], 'readonly':[('state','!=','draft')]}"/> |
|
|
<field name="partner_id" |
|
|
<field name="partner_id" |
|
|
options="{'no_create':True}" |
|
|
options="{'no_create':True}" |
|
|
attrs="{'readonly':[('state','!=','draft')]}"/> |
|
|
attrs="{'readonly':[('state','!=','draft')]}"/> |
|
|
<field name="partner_id_to" |
|
|
<field name="partner_id_to" |
|
|
options="{'no_create':True}" |
|
|
options="{'no_create':True}" |
|
|
attrs="{'invisible':['|',('operation_type','!=','transfer'), ('receiver_not_member','=',True)]}"/> |
|
|
|
|
|
|
|
|
attrs="{'invisible':['|',('operation_type','!=','transfer'), ('receiver_not_member','=',True)], 'readonly':[('state','!=','draft')]}"/> |
|
|
</group> |
|
|
</group> |
|
|
<group> |
|
|
<group> |
|
|
<field name="user_id"/> |
|
|
<field name="user_id"/> |
|
|