Files
public/rsbu_payroll/demo/rsbu_payroll_demo.xml

25 lines
1.3 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Демо-сотрудник с контрактом (hr.version) и РФ-структурой зарплаты -->
<record id="rsbu_demo_employee" model="hr.employee">
<field name="company_id" ref="base.main_company"/>
<field name="name">Петров Пётр Петрович</field>
<field name="date_version" eval="time.strftime('%Y-%m')+'-01'"/>
<field name="contract_date_start" eval="time.strftime('%Y-%m')+'-01'"/>
<field name="contract_date_end" eval="time.strftime('%Y')+'-12-31'"/>
<field name="struct_id" ref="rsbu_payroll.rsbu_structure_ru"/>
<field name="wage" eval="60000.0"/>
</record>
<!-- Пример расчётного листка за текущий месяц -->
<record id="rsbu_demo_payslip" model="hr.payslip">
<field name="name">Расчётный листок (демо)</field>
<field name="employee_id" ref="rsbu_demo_employee"/>
<field name="struct_id" ref="rsbu_payroll.rsbu_structure_ru"/>
<field name="date_from" eval="time.strftime('%Y-%m')+'-01'"/>
<field name="date_to" eval="(DateTime.today() + relativedelta(day=31)).strftime('%Y-%m-%d')"/>
</record>
</data>
</odoo>