Skip to content
Snippets Groups Projects
Commit 0db1618b15a4 authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Tweak views & menu commands

parent d99bb5932d9c
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="name" />
<field name="code" />
<field name="period_ids" />
</tree>
......@@ -34,7 +34,8 @@
<field name="arch" type="xml">
<form>
<header>
</header>
<!-- Utility fields. -->
<field name="id" invisible="1" />
<sheet>
......@@ -39,3 +40,8 @@
<sheet>
<group col="4">
<field name="name" />
<field name="code" />
</group>
<group>
......@@ -41,5 +47,12 @@
<group>
<field name="name" />
<field name="code" />
<field name="period_ids" />
<field name="period_ids">
<tree editable="bottom">
<field name="name" />
<field name="code" />
<field name="date_start" />
<field name="date_stop" />
<field name="date_cutoff" />
<field name="state" />
</tree>
</field>
</group>
......@@ -45,4 +58,5 @@
</group>
</sheet>
</form>
......@@ -52,10 +66,10 @@
<!-- Add a menu command to manage accounting fiscalyear. -->
<record id="account_fiscalyear_action" model="ir.actions.act_window">
<field name="name">Accounting fiscal years</field>
<field name="name">Fiscal years</field>
<field name="res_model">account.fiscalyear</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
</record>
<menuitem id="account_fiscalyear_menu_command" parent="account.account_account_menu"
......@@ -56,9 +70,9 @@
<field name="res_model">account.fiscalyear</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
</record>
<menuitem id="account_fiscalyear_menu_command" parent="account.account_account_menu"
name="Accounting fiscal years" action="account_fiscalyear_action"/>
action="account_fiscalyear_action" />
</odoo>
......@@ -59,10 +59,10 @@
<!-- Add a menu command to manage accounting period. -->
<record id="account_period_action" model="ir.actions.act_window">
<field name="name">Accounting periods</field>
<field name="name">Periods</field>
<field name="res_model">account.period</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
</record>
<menuitem id="account_period_menu_command" parent="account.account_account_menu"
......@@ -63,9 +63,9 @@
<field name="res_model">account.period</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
</record>
<menuitem id="account_period_menu_command" parent="account.account_account_menu"
name="Accounting periods" action="account_period_action" />
action="account_period_action" />
</odoo>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment