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.
84 lines
3.6 KiB
84 lines
3.6 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Tree view of the custom clearance-->
|
|
<record id="custom_clearance_view_tree" model="ir.ui.view">
|
|
<field name="name">custom.clearance.view.tree</field>
|
|
<field name="model">custom.clearance</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="name"/>
|
|
<field name="freight_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<!--Form view of the custom clearance-->
|
|
<record id="custom_clearance_view_form" model="ir.ui.view">
|
|
<field name="name">custom.clearance.view.form</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" invisible="state != 'draft'"/>
|
|
<button name="action_revision" string="Revision"
|
|
type="object" class="oe_highlight"
|
|
invisible="state != '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="action_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"/>
|
|
<field name="company_id" invisible="1"/>
|
|
</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>
|
|
<!--Action for custom clearance-->
|
|
<record id="custom_clearance_action" 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>
|
|
<!-- Menu for Custom Clearance-->
|
|
<menuitem id="custom_clearance_menu_root" name="Custom"
|
|
parent="freight_order_menu_root"
|
|
sequence="2"/>
|
|
<menuitem id="custom_clearance_menu" name="Custom Clearance"
|
|
parent="custom_clearance_menu_root" sequence="2"
|
|
action="custom_clearance_action"/>
|
|
</odoo>
|
|
|