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 @@ ...@@ -20,7 +20,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree> <tree>
<field name="name" /> <field name="name" />
<field name="code" /> <field name="code" />
<field name="period_ids" /> <field name="period_ids" />
</tree> </tree>
...@@ -34,7 +34,8 @@ ...@@ -34,7 +34,8 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form> <form>
<header>
</header> <!-- Utility fields. -->
<field name="id" invisible="1" />
<sheet> <sheet>
...@@ -39,3 +40,8 @@ ...@@ -39,3 +40,8 @@
<sheet> <sheet>
<group col="4">
<field name="name" />
<field name="code" />
</group>
<group> <group>
...@@ -41,5 +47,12 @@ ...@@ -41,5 +47,12 @@
<group> <group>
<field name="name" /> <field name="period_ids">
<field name="code" /> <tree editable="bottom">
<field name="period_ids" /> <field name="name" />
<field name="code" />
<field name="date_start" />
<field name="date_stop" />
<field name="date_cutoff" />
<field name="state" />
</tree>
</field>
</group> </group>
...@@ -45,4 +58,5 @@ ...@@ -45,4 +58,5 @@
</group> </group>
</sheet> </sheet>
</form> </form>
...@@ -52,10 +66,10 @@ ...@@ -52,10 +66,10 @@
<!-- Add a menu command to manage accounting fiscalyear. --> <!-- Add a menu command to manage accounting fiscalyear. -->
<record id="account_fiscalyear_action" model="ir.actions.act_window"> <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="res_model">account.fiscalyear</field>
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
<field name="view_type">form</field> <field name="view_type">form</field>
</record> </record>
<menuitem id="account_fiscalyear_menu_command" parent="account.account_account_menu" <menuitem id="account_fiscalyear_menu_command" parent="account.account_account_menu"
...@@ -56,9 +70,9 @@ ...@@ -56,9 +70,9 @@
<field name="res_model">account.fiscalyear</field> <field name="res_model">account.fiscalyear</field>
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
<field name="view_type">form</field> <field name="view_type">form</field>
</record> </record>
<menuitem id="account_fiscalyear_menu_command" parent="account.account_account_menu" <menuitem id="account_fiscalyear_menu_command" parent="account.account_account_menu"
name="Accounting fiscal years" action="account_fiscalyear_action"/> action="account_fiscalyear_action" />
</odoo> </odoo>
...@@ -59,10 +59,10 @@ ...@@ -59,10 +59,10 @@
<!-- Add a menu command to manage accounting period. --> <!-- Add a menu command to manage accounting period. -->
<record id="account_period_action" model="ir.actions.act_window"> <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="res_model">account.period</field>
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
<field name="view_type">form</field> <field name="view_type">form</field>
</record> </record>
<menuitem id="account_period_menu_command" parent="account.account_account_menu" <menuitem id="account_period_menu_command" parent="account.account_account_menu"
...@@ -63,9 +63,9 @@ ...@@ -63,9 +63,9 @@
<field name="res_model">account.period</field> <field name="res_model">account.period</field>
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
<field name="view_type">form</field> <field name="view_type">form</field>
</record> </record>
<menuitem id="account_period_menu_command" parent="account.account_account_menu" <menuitem id="account_period_menu_command" parent="account.account_account_menu"
name="Accounting periods" action="account_period_action" /> action="account_period_action" />
</odoo> </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