Slink/sos_inventory/views/sos_budget_plan_view.xml

75 lines
2.3 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="action_budget_plan_list" model="ir.actions.act_window">
<field name="name">Budget Plan</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sos_budget_plan</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No Plan Found
</p>
</field>
</record>
<record id="sos_budget_plan_view_tree" model="ir.ui.view">
<field name="name">sos_budget_plan.view.tree</field>
<field name="model">sos_budget_plan</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="quantity"/>
<field name="write_uid" string="Last Edited By" optional="hide"/>
<field name="write_date" string="Last Edited On" optional="hide"/>
</tree>
</field>
</record>
<record id="sos_budget_plan_form_view" model="ir.ui.view">
<field name="name">Form</field>
<field name="model">sos_budget_plan</field>
<field name="arch" type="xml">
<form string="Budget Plan">
<sheet>
<h2 style="text-align: center;text-transform: uppercase;text-shadow: 1px 1p 1px #140718;color: #65407c;padding:5px;">Budget Plan</h2><hr></hr><br></br>
<table class="table table" style="box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;">
<tr><td><group><field name="sfg_option"/></group></td>
<td><group><field name="fg_option"/></group></td></tr>
</table>
<br></br>
<group>
<!-- Left Column -->
<group>
<field name="name"/>
<field name="quantity"/>
</group>
<!-- Right Column -->
<group>
<field name="fg_name" invisible="sfg_option"/>
<field name="sfg_name" invisible="fg_option"/>
</group>
<button class="btn btn-primary" type="object" name="create_budget_plan" string="Execute"/>
</group>
</sheet>
</form>
</field>
</record>
<menuitem id="budget_plan_menu"
name="Budget Plan"
parent="indent_menu_root"
action = "action_budget_plan_list"/>
</odoo>