|
- <?xml version="1.0"?>
- <odoo>
- <data>
- <record id="profit_statement_list" model="ir.ui.view">
- <field name="name">profit_statement_list</field>
- <field name="model">profit.statement</field>
- <field name="arch" type="xml">
- <list string='利润表' create='false' edit='false' >
- <field name="balance" optional="show"/>
- <field name="line_num" optional="show"/>
- <field name="cumulative_occurrence_balance" optional="show"/>
- <field name="current_occurrence_balance" optional="show"/>
- </list>
- </field>
- </record>
- <record id="profit_statement_list_template" model="ir.ui.view">
- <field name="name">profit_statement_list_template</field>
- <field name="model">profit.statement</field>
- <field name="arch" type="xml">
- <list string='利润表模板' editable="bottom" >
- <field name="sequence" widget="handle" optional="show"/>
- <field name="balance" optional="show"/>
- <field name="line_num" optional="show"/>
- <field name="occurrence_balance_formula" optional="show"/>
- </list>
- </field>
- </record>
- <record id="profit_statement_action_template" model="ir.actions.act_window">
- <field name="name">利润表模板</field>
- <field name="res_model">profit.statement</field>
- <field name="type">ir.actions.act_window</field>
-
- <field name="view_mode">list</field>
- <field name="view_id" ref="profit_statement_list_template"/>
- </record>
-
- <menuitem id='profit_statement_menu' action='profit_statement_action_template' groups="base.group_no_one" parent='finance_setting_menu' sequence='80'/>
-
-
- <record id="balance_sheet_list" model="ir.ui.view">
- <field name="name">balance_sheet_list</field>
- <field name="model">balance.sheet</field>
- <field name="arch" type="xml">
- <list string="资产负债表模板" editable="bottom" >
- <field name="sequence" widget="handle" optional="show"/>
- <field name="balance" optional="show"/>
- <field name="line_num" optional="show"/>
- <field name="balance_formula" optional="show"/>
- <field name="balance_two" optional="show"/>
- <field name="line_num_two" optional="show"/>
- <field name="balance_two_formula" optional="show"/>
- </list>
- </field>
- </record>
- <record id="balance_sheet_list_wizard" model="ir.ui.view">
- <field name="name">balance_sheet_list</field>
- <field name="model">balance.sheet</field>
- <field name="arch" type="xml">
- <list string="资产负债表" create="false" edit='false'>
- <field name="balance" optional="show"/>
- <field name="line_num" optional="show"/>
- <field name="beginning_balance" optional="show"/>
- <field name="ending_balance" optional="show"/>
- <field name="balance_two" optional="show"/>
- <field name="line_num_two" optional="show"/>
- <field name="beginning_balance_two" optional="show"/>
- <field name="ending_balance_two" optional="show"/>
- </list>
- </field>
- </record>
- <record id="balance_sheet_action" model="ir.actions.act_window">
- <field name="name">资产负债表模板</field>
- <field name="res_model">balance.sheet</field>
- <field name="type">ir.actions.act_window</field>
-
- <field name="view_mode">list</field>
- <field name="view_id" ref="balance_sheet_list"/>
- </record>
- <record id="create_balance_sheet_wizard_form" model="ir.ui.view">
- <field name="name">create.balance.sheet.wizard.form</field>
- <field name="model">create.balance.sheet.wizard</field>
- <field name="arch" type="xml">
- <form>
- <group>
- <group>
- <field name="period_id" options="{'no_open':True,'no_create':True}" required="True"/>
- </group>
- </group>
- <footer>
- <button name="create_balance_sheet" invisible="context.get('profit_statement')" string="资产负债表" type="object" class="oe_highlight"/>
- <button name="create_profit_statement" invisible="context.get('balance_sheet')" string="利润表" type="object" class="oe_highlight"/>
- <button string="取消" class="oe_link" special="cancel"/>
- </footer>
- </form>
- </field>
- </record>
-
- <record id="create_balance_sheet_wizard_action" model="ir.actions.act_window">
- <field name="name">资产负债表</field>
- <field name="res_model">create.balance.sheet.wizard</field>
- <field name="view_mode">form</field>
- <field name="target">new</field>
- </record>
-
- <record id="profit_statement_list_wizard_action" model="ir.actions.act_window">
- <field name="name">利润表</field>
- <field name="res_model">create.balance.sheet.wizard</field>
- <field name="view_mode">form</field>
- <field name="target">new</field>
- </record>
-
- <menuitem id='profit_statement_list_wizard_action_menu' action='profit_statement_list_wizard_action' parent='voucher_books_menu' sequence='30'/>
- <menuitem id='create_balance_sheet_wizard_menu' action='create_balance_sheet_wizard_action' parent='voucher_books_menu' sequence='25'/>
- <menuitem id='balance_sheet_menu' action='balance_sheet_action' parent='finance_setting_menu' groups="base.group_no_one" sequence='70'/>
- </data>
- </odoo>
|