l10n-switzerland-flectra/l10n_ch_hr_payroll/views/hr_salary_rule_view.xml
2021-12-24 10:56:31 +01:00

24 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<record model="ir.ui.view" id="hr_salary_rule_form_l10n_ch_inherit_info">
<field name="name">hr.salary.rule.form.inherit_ch_info</field>
<field name="model">hr.salary.rule</field>
<field name="inherit_id" ref="hr_payroll_account.hr_salary_rule_form_inherit"/>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<xpath expr="/form/notebook/page/group/field[@name='account_debit']" position="attributes">
<attribute name="attrs">{'readonly':[('category_id','=',%(INFO)d)]}</attribute>
</xpath>
<xpath expr="/form/notebook/page/group/field[@name='account_credit']" position="attributes">
<attribute name="attrs">{'readonly':[('category_id','=',%(INFO)d)]}</attribute>
</xpath>
<xpath expr="/form/notebook/page/group/field[@name='analytic_account_id']" position="attributes">
<attribute name="attrs">{'readonly':[('category_id','=',%(INFO)d)]}</attribute>
</xpath>
<xpath expr="/form/notebook/page/group/field[@name='account_tax_id']" position="attributes">
<attribute name="attrs">{'readonly':[('category_id','=',%(INFO)d)]}</attribute>
</xpath>
</field>
</record>
</flectra>