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.
214 lines
11 KiB
214 lines
11 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!--Freight order tree view-->
|
|
<record id="freight_order_view_tree" model="ir.ui.view">
|
|
<field name="name">freight.order.view.tree</field>
|
|
<field name="model">freight.order</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="name"/>
|
|
<field name="type"/>
|
|
<field name="transport_type"/>
|
|
<field name="loading_port_id"/>
|
|
<field name="discharging_port_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<!--Freight order form view-->
|
|
<record id="freight_order_view_form" model="ir.ui.view">
|
|
<field name="name">freight.order.view.form</field>
|
|
<field name="model">freight.order</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
<button name="action_create_custom_clearance"
|
|
string="Custom Clearance" type="object"
|
|
class="oe_highlight"
|
|
data-hotkey="w"
|
|
invisible="clearance == 'True'"/>
|
|
<button name="action_submit" string="Submit"
|
|
type="object" class="oe_highlight"
|
|
data-hotkey="w" invisible="state != 'draft'"/>
|
|
<button name="action_confirm" string="Confirm"
|
|
type="object" class="oe_highlight"
|
|
data-hotkey="w" invisible="state != 'submit'"/>
|
|
<button name="action_create_invoice" string="Invoice"
|
|
type="object" class="oe_highlight"
|
|
data-hotkey="w" invisible="state != 'confirm'"/>
|
|
<button name="action_track_order" string="Tracking"
|
|
type="object" class="oe_highlight"
|
|
invisible="state not in ('confirm', 'invoice')"
|
|
data-hotkey="w"/>
|
|
<button name="action_done" string="Done" type="object"
|
|
class="oe_highlight"
|
|
invisible="state not in ('confirm', 'invoice')"
|
|
data-hotkey="w"/>
|
|
<button name="action_cancel" string="Cancel"
|
|
type="object"
|
|
invisible="state not in ('draft', 'submit', 'confirm', 'invoice')"
|
|
data-hotkey="w"/>
|
|
<field name="state" widget="statusbar"
|
|
statusbar_visible="draft,submit,confirm"
|
|
readonly="1"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box">
|
|
<button class="oe_stat_button" type="object"
|
|
name="get_custom_clearance"
|
|
icon="fa-id-card-o">
|
|
<field string="Clearance" name="clearance_count"
|
|
widget="statinfo"/>
|
|
</button>
|
|
<button class="oe_stat_button" type="object"
|
|
name="get_invoice"
|
|
icon="fa-pencil-square-o">
|
|
<field string="Invoice" name="invoice_count"
|
|
widget="statinfo"/>
|
|
</button>
|
|
</div>
|
|
<div class="oe_title">
|
|
<h1 class="mt0">
|
|
<field name="name"/>
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="shipper_id"/>
|
|
<field name="consignee_id"/>
|
|
<field name="order_date"/>
|
|
<field name="company_id" invisible="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="clearance" invisible="1"/>
|
|
<field name="type"/>
|
|
<field name="transport_type"/>
|
|
<field name="land_type"
|
|
invisible="transport_type != 'land'"/>
|
|
<field name="water_type"
|
|
invisible="transport_type != 'water'"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="loading_port_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="discharging_port_id"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="agent_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="expected_date"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Order">
|
|
<field name="order_ids">
|
|
<tree string="Order Lines"
|
|
editable="bottom">
|
|
<field name="container_id"/>
|
|
<field name="product_id"/>
|
|
<field name="billing_type"/>
|
|
<field name="pricing_id"/>
|
|
<field name="volume"
|
|
invisible="billing_type != 'volume'"/>
|
|
<field name="weight"
|
|
invisible="billing_type != 'weight'"/>
|
|
<field name="price"/>
|
|
<field name="total_price"/>
|
|
</tree>
|
|
</field>
|
|
<group class="oe_subtotal_footer oe_right"
|
|
colspan="2">
|
|
<div class="oe_inline o_td_label">
|
|
<label for="total_volume"/>
|
|
</div>
|
|
<field name="total_volume" nolabel="1"/>
|
|
<div class="oe_inline o_td_label">
|
|
<label for="total_weight"/>
|
|
</div>
|
|
<field name="total_weight" nolabel="1"/>
|
|
<div class="oe_inline o_td_label">
|
|
<label for="total_order_price"/>
|
|
</div>
|
|
<field name="total_order_price"
|
|
nolabel="1"/>
|
|
</group>
|
|
</page>
|
|
<page string="Routes">
|
|
<field name="route_ids">
|
|
<tree string="Routes" editable="bottom">
|
|
<field name="routes_id"/>
|
|
<field name="source_loc_id"/>
|
|
<field name="destination_loc_id"/>
|
|
<field name="transport_type"/>
|
|
<field name="sale"/>
|
|
</tree>
|
|
</field>
|
|
<group class="oe_subtotal_footer oe_right"
|
|
colspan="2">
|
|
<div class="oe_inline o_td_label">
|
|
<label for="total_route_sale"/>
|
|
</div>
|
|
<field name="total_route_sale" nolabel="1"/>
|
|
</group>
|
|
</page>
|
|
<page string="Services">
|
|
<field name="service_ids">
|
|
<tree string="Services" editable="bottom">
|
|
<field name="partner_id"/>
|
|
<field name="service_id"/>
|
|
<field name="qty"/>
|
|
<field name="sale"/>
|
|
<field name="total_sale"/>
|
|
</tree>
|
|
</field>
|
|
<group class="oe_subtotal_footer oe_right"
|
|
colspan="2">
|
|
<div class="oe_inline o_td_label">
|
|
<label for="total_service_sale"/>
|
|
</div>
|
|
<field name="total_service_sale"
|
|
nolabel="1"/>
|
|
</group>
|
|
</page>
|
|
<page string="Track">
|
|
<field name="track_ids">
|
|
<tree string="Services" editable="bottom"
|
|
create="0">
|
|
<field name="source_loc_id"/>
|
|
<field name="destination_loc_id"/>
|
|
<field name="transport_type"/>
|
|
<field name="date"/>
|
|
<field name="type"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<!--Action for freight order-->
|
|
<record id="freight_order_action" model="ir.actions.act_window">
|
|
<field name="name">Freight Order</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">freight.order</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Define a new freight order
|
|
</p>
|
|
</field>
|
|
</record>
|
|
<!--Defined menus-->
|
|
<menuitem id="freight_order_menu_root" name="Freight Management"
|
|
web_icon="freight_management_system,static/description/icon.png"
|
|
sequence="4"/>
|
|
<menuitem id="freight_order_menu_shipping" name="Shipping"
|
|
parent="freight_order_menu_root" sequence="2"
|
|
action="freight_order_action"/>
|
|
</odoo>
|
|
|