59 lines
2.4 KiB
XML
59 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="view_account_spread_template" model="ir.ui.view">
|
|
<field name="model">account.spread.template</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<label for="name" string="Spread Template Name"/>
|
|
<h1><field name="name" placeholder="e.g. Template cleaning contract"/></h1>
|
|
</div>
|
|
<group name="main_info">
|
|
<group>
|
|
<field name="spread_type"/>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
<field name="period_number"/>
|
|
<field name="period_type"/>
|
|
<field name="start_date"/>
|
|
</group>
|
|
<group>
|
|
<field name="spread_account_id" domain="[('company_id', '=', company_id), ('deprecated', '=', False)]" options="{'no_create': True}"/>
|
|
<field name="spread_journal_id" domain="[('company_id', '=', company_id)]" widget="selection"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_account_spread_template_tree" model="ir.ui.view">
|
|
<field name="model">account.spread.template</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="name"/>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
<field name="spread_account_id"/>
|
|
<field name="spread_journal_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_account_spread_template_form" model="ir.actions.act_window">
|
|
<field name="name">Spread Templates</field>
|
|
<field name="res_model">account.spread.template</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_id" ref="view_account_spread_template_tree"/>
|
|
</record>
|
|
|
|
<menuitem id="menu_action_account_spread_template_form"
|
|
parent="account.account_account_menu"
|
|
action="action_account_spread_template_form"
|
|
groups="account.group_account_manager"/>
|
|
|
|
</odoo>
|