summaryrefslogtreecommitdiff
path: root/base_accounting_kit/wizard/asset_modify_views.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 /base_accounting_kit/wizard/asset_modify_views.xml
parentb57188be371d36d96caac4b8d65a40745c0e972c (diff)
initial commit
Diffstat (limited to 'base_accounting_kit/wizard/asset_modify_views.xml')
-rw-r--r--base_accounting_kit/wizard/asset_modify_views.xml40
1 files changed, 40 insertions, 0 deletions
diff --git a/base_accounting_kit/wizard/asset_modify_views.xml b/base_accounting_kit/wizard/asset_modify_views.xml
new file mode 100644
index 0000000..edd5cd4
--- /dev/null
+++ b/base_accounting_kit/wizard/asset_modify_views.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record model="ir.ui.view" id="asset_modify_form">
+ <field name="name">wizard.asset.modify.form</field>
+ <field name="model">asset.modify</field>
+ <field name="arch" type="xml">
+ <form string="Modify Asset">
+ <field name="asset_method_time" invisible="1"/>
+ <group string="Asset Durations to Modify" col="4">
+ <group colspan="2" col="2">
+ <field name="name"/>
+ <field name="method_number" attrs="{'invisible': [('asset_method_time', '=', 'end')]}"/>
+ </group>
+ <group colspan="2" col="2">
+ <field name="method_end" attrs="{'invisible': [('asset_method_time', '=', 'number')]}"/>
+ <label for="method_period"/>
+ <div>
+ <field name="method_period" class="oe_inline"/> months
+ </div>
+ </group>
+ </group>
+ <footer>
+ <button name="modify" string="Modify" type="object" class="btn-primary"/>
+ <button string="Cancel" class="btn-default" special="cancel"/>
+ </footer>
+ </form>
+ </field>
+ </record>
+
+ <record id="action_asset_modify" model="ir.actions.act_window">
+ <field name="name">Modify Asset</field>
+ <field name="res_model">asset.modify</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="view_mode">tree,form</field>
+ <field name="view_id" ref="asset_modify_form"/>
+ <field name="target">new</field>
+ </record>
+
+</odoo>