Merge pull request #5422 from expsa/edit_vis
[IMP] hr_government_relations: open cost field for governement relations
This commit is contained in:
commit
c232517246
|
|
@ -91,9 +91,9 @@
|
|||
<field name="exit_return_type" string="Exit Return Type"
|
||||
attrs="{'readonly':[('state','!=','draft')]}"/>
|
||||
<field name="on_employee_fair" string="On Employee Fair"
|
||||
attrs="{'readonly':[('state','!=','send')],'required':[('state','=','send')]}"/>
|
||||
attrs="{'readonly':[('state','!=','accounting')],'required':[('state','=','accounting')]}"/>
|
||||
<field name="cost" string="Cost"
|
||||
attrs="{'readonly':[('state','!=','send')],'required':[('state','=','send')]}"/>
|
||||
attrs="{'readonly':[('state','!=','accounting')],'required':[('state','=','accounting')]}"/>
|
||||
<field name="account_journal_id" string="Journal"
|
||||
attrs="{'readonly':[('state','!=','accounting_final')],'invisible':[('on_employee_fair','=',True)],
|
||||
'required':[('state','=','accounting_final'),('on_employee_fair','=',False)]}"/>
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@
|
|||
|
||||
</group>
|
||||
<group>
|
||||
<field name="cost" string="Cost" attrs="{'readonly':[('state','!=','send')]}"/>
|
||||
<field name="cost" string="Cost" attrs="{'readonly':[('state','!=','accounting')]}"/>
|
||||
<field name="account_journal_id" string="Journal"
|
||||
attrs="{'readonly':[('state','!=','accounting_final')],'required':['&',('cost','>', '0' ),('state','=','accounting_final')]}"/>
|
||||
<field name="account_debit_id" string="Account"
|
||||
|
|
|
|||
Loading…
Reference in New Issue