You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
3.5 KiB
75 lines
3.5 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<data>
|
|
<record id="custom_clearance_tree_view" model="ir.ui.view">
|
|
<field name="name">Custom Clearance</field>
|
|
<field name="model">custom.clearance</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="name"/>
|
|
<field name="freight_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="custom_clearance_form_view" model="ir.ui.view">
|
|
<field name="name">Custom Clearance</field>
|
|
<field name="model">custom.clearance</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
<button name="action_confirm" string="Confirm" type="object" class="oe_highlight" states="draft"/>
|
|
<button name="action_revision" string="Revision" type="object" class="oe_highlight" states="confirm"/>
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,confirm" readonly="1"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box">
|
|
<button class="oe_stat_button" type="object" name="get_revision"
|
|
icon="fa-id-card-o" string="Revision">
|
|
</button>
|
|
</div>
|
|
<group>
|
|
<field name="name"/>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="freight_id"/>
|
|
<field name="date"/>
|
|
</group>
|
|
<group>
|
|
<field name="agent_id"/>
|
|
<field name="loading_port_id" />
|
|
<field name="discharging_port_id" />
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Custom Clearance">
|
|
<field name="line_ids">
|
|
<tree string="Order Lines" editable="bottom">
|
|
<field name="name"/>
|
|
<field name="document"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_custom_clearance" model="ir.actions.act_window">
|
|
<field name="name">Custom Clearance</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">custom.clearance</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Define a new custom clearance
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_custom" name="Custom" parent="menu_freight_root" sequence="2"/>
|
|
<menuitem id="menu_custom_clearance" name="Custom Clearance" parent="menu_custom" sequence="2" action="action_custom_clearance"/>
|
|
</data>
|
|
</odoo>
|