Skip to content

Commit

Permalink
Fixed hr_accrual_view.xml so that lines computed by payslip could not…
Browse files Browse the repository at this point in the history
… be edited
  • Loading branch information
dufresnedavid committed Dec 19, 2014
1 parent 32043bb commit 5fa746f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hr_leave_accruals/view/hr_leave_accrual_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
<field name="salary_rule_id" readonly="1"/>
<field name="state" readonly="1"/>
<field name="amount" attrs="{'readonly': [('payslip_id', '!=', False)]}"/>
<field name="substract"/>
<field name="substract" attrs="{'readonly': [('payslip_id', '!=', False)]}"/>
<field name="date"
attrs="{
'readonly': [('payslip_id', '!=', False)],
'required': [('payslip_id', '=', False)]
}"/>
<field name="description" attrs="{'required': [('payslip_id', '=', False)]}"/>
<field name="description" attrs="{
'readonly': [('payslip_id', '!=', False)],
'required': [('payslip_id', '=', False)]
}"/>
</tree>
</field>
</form>
Expand Down

0 comments on commit 5fa746f

Please sign in to comment.