Files
public/rsbu_fns_reporting/views/rsbu_pers_info_views.xml

79 lines
3.5 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>
<record id="view_rsbu_pers_info_list" model="ir.ui.view">
<field name="name">rsbu.pers.info.list</field>
<field name="model">rsbu.pers.info</field>
<field name="arch" type="xml">
<list string="Персонифицированные сведения">
<field name="name"/>
<field name="year"/>
<field name="month"/>
<field name="date_doc"/>
<field name="state" widget="badge"/>
<field name="company_id" groups="base.group_multi_company"/>
</list>
</field>
</record>
<record id="view_rsbu_pers_info_form" model="ir.ui.view">
<field name="name">rsbu.pers.info.form</field>
<field name="model">rsbu.pers.info</field>
<field name="arch" type="xml">
<form string="Персонифицированные сведения о физлицах">
<header>
<button name="action_compute" type="object"
string="Рассчитать" class="btn-primary"/>
<button name="action_export_xml" type="object"
string="Выгрузить XML"
invisible="state != 'computed'"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<div class="oe_title">
<h1><field name="name" readonly="1"/></h1>
</div>
<div class="alert alert-info" role="alert"
invisible="state != 'computed'">
Строки заполнены автоматически из помесячных выплат
сотрудникам за отчётный месяц. Подаётся ежемесячно.
</div>
<group>
<group>
<field name="year"/>
<field name="month"/>
</group>
<group>
<field name="date_doc"/>
<field name="currency_id" invisible="1"/>
<field name="company_id"
groups="base.group_multi_company"/>
</group>
</group>
<field name="line_ids">
<list>
<field name="employee_id"/>
<field name="snils"/>
<field name="inn"/>
<field name="amount"/>
<field name="cancelled"/>
<field name="currency_id" column_invisible="1"/>
</list>
</field>
</sheet>
</form>
</field>
</record>
<record id="action_rsbu_pers_info" model="ir.actions.act_window">
<field name="name">Персонифицированные сведения</field>
<field name="res_model">rsbu.pers.info</field>
<field name="view_mode">list,form</field>
</record>
<menuitem id="menu_rsbu_pers_info"
name="Персонифицированные сведения"
parent="rsbu_chart_of_accounts.menu_rsbu_reports"
action="action_rsbu_pers_info"
sequence="45"/>
</odoo>