2
0
account-financial-tools/account_spread_cost_revenue/views/account_spread_template.xml

62 lines
2.9 KiB
XML
Raw Normal View History

2018-10-22 12:27:50 +02:00
<?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"/>
2018-12-20 16:39:00 +01:00
<field name="period_number"/>
<field name="period_type"/>
<field name="start_date"/>
2018-10-22 12:27:50 +02:00
</group>
<group>
<field name="use_invoice_line_account"/>
<field name="spread_account_id" domain="[('company_id', '=', company_id), ('deprecated', '=', False)]" options="{'no_create': True}"
attrs="{'required': [('use_invoice_line_account', '!=', True)], 'invisible': [('use_invoice_line_account', '=', True)]}" />
<field name="exp_rev_account_id" attrs="{'invisible': ['|', ('use_invoice_line_account', '=', False)], 'required': [('use_invoice_line_account', '=', True)]}" domain="[('company_id', '=', company_id), ('deprecated', '=', False)]" options="{'no_create': True}"/>
2018-10-22 12:27:50 +02:00
<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>