Odoo - How to inherit BASE Salary structure as data and add new salary rules to it
问题 I need to add a new Salary rule in Base of a data.xml file, so I can compute the total allowances and deductions. The final output should look like this: Here's my code: <?xml version="1.0" encoding="utf-8"?> <openerp> <data noupdate="1"> <record id="ALLOWANCES" model="hr.salary.rule.category"> <field name="name">Allowances</field> <field name="code">ALLOWANCES</field> </record> <record id="DEDUCTIONS" model="hr.salary.rule.category"> <field name="name">Deductions</field> <field name="code"