summaryrefslogtreecommitdiff
path: root/custom_indoteknik/views/account_period_view.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
commit1ca3b3df3421961caec3b747a364071c80f5c7da (patch)
tree6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /custom_indoteknik/views/account_period_view.xml
parentb57188be371d36d96caac4b8d65a40745c0e972c (diff)
initial commit
Diffstat (limited to 'custom_indoteknik/views/account_period_view.xml')
-rw-r--r--custom_indoteknik/views/account_period_view.xml64
1 files changed, 64 insertions, 0 deletions
diff --git a/custom_indoteknik/views/account_period_view.xml b/custom_indoteknik/views/account_period_view.xml
new file mode 100644
index 0000000..6b4fd5a
--- /dev/null
+++ b/custom_indoteknik/views/account_period_view.xml
@@ -0,0 +1,64 @@
+<odoo>
+ <data>
+
+ <record id="account_period_tree" model="ir.ui.view">
+ <field name="name">Periods</field>
+ <field name="model">account.period</field>
+ <field name="arch" type="xml">
+ <tree>
+ <field name="name"/>
+ <field name="year"/>
+ <field name="start_date"/>
+ <field name="end_date"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="account_period_form" model="ir.ui.view">
+ <field name="name">Periods</field>
+ <field name="model">account.period</field>
+ <field name="arch" type="xml">
+ <form>
+ <header>
+ <button name="action_create_period" string="Create Periods"
+ states="Open" type="object" class="oe_highlight"/>
+ <field name="state" readonly="1" widget="statusbar"/>
+ </header>
+ <sheet>
+ <group>
+ <group>
+ <field name="name" required="1"/>
+ <field name="year" required="1"/>
+ </group>
+ <group>
+ <field name="start_date" required="1"/>
+ <field name="end_date" required="1"/>
+ </group>
+ </group>
+ <group>
+ <notebook>
+ <page string="Periods">
+ <group>
+ <field name="line_ids" nolabel="1" readonly="1">
+ <tree>
+ <field name="period_name"/>
+ <field name="start_date"/>
+ <field name="end_date"/>
+ <field name="state"/>
+ <button name="action_close_period" type="object"
+ string="Close Period" class="oe_highlight" states="Open"/>
+ <button name="action_open_period" type="object"
+ string="Open Period" class="oe_highlight" states="Closed"/>
+ </tree>
+ </field>
+ </group>
+ </page>
+ </notebook>
+ </group>
+ </sheet>
+ </form>
+ </field>
+ </record>
+
+ </data>
+</odoo> \ No newline at end of file