summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/cost_centre.xml
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-09-06 13:59:28 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-09-06 13:59:28 +0700
commit4986c63d2a6bd8e2feadbd2403a211b0b0cf405f (patch)
treeb80d2d415b887a7ab66c9d55d5a4857d34142bea /indoteknik_custom/views/cost_centre.xml
parentea48748650d1abe7b9c09f961eaa3762750e21be (diff)
parente07379886024a313695a56ebdd072bfd87b6626a (diff)
Merge branch 'production' into feature/voucher-group
Diffstat (limited to 'indoteknik_custom/views/cost_centre.xml')
-rw-r--r--indoteknik_custom/views/cost_centre.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/indoteknik_custom/views/cost_centre.xml b/indoteknik_custom/views/cost_centre.xml
new file mode 100644
index 00000000..3e4d2736
--- /dev/null
+++ b/indoteknik_custom/views/cost_centre.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<odoo>
+ <record id="cost_centre_tree" model="ir.ui.view">
+ <field name="name">cost.centre.tree</field>
+ <field name="model">cost.centre</field>
+ <field name="arch" type="xml">
+ <tree editable="top">
+ <field name="name"/>
+ <field name="description"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="cost_centre_form" model="ir.ui.view">
+ <field name="name">cost.centre.form</field>
+ <field name="model">cost.centre</field>
+ <field name="arch" type="xml">
+ <form>
+ <sheet string="Cost Centre">
+ <group>
+ <group>
+ <field name="name" required="1"/>
+ <field name="description"/>
+ </group>
+ </group>
+ </sheet>
+ </form>
+ </field>
+ </record>
+
+ <record id="cost_centre_action" model="ir.actions.act_window">
+ <field name="name">Cost Centre</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="res_model">cost.centre</field>
+ <field name="view_mode">tree,form</field>
+ </record>
+
+ <menuitem name="Cost Centre" action="cost_centre_action"
+ id="menu_cost_centre"
+ parent="account.menu_finance_entries" sequence="112"/>
+</odoo> \ No newline at end of file