shipcloud.io integration to odoo (as delivery carrier)
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.

65 lines
2.2 KiB

<?xml version="1.0"?>
<openerp>
<data>
<record id="view_pickup_form" model="ir.ui.view">
<field name="name">delivery.carrier.pickup.form</field>
<field name="model">delivery.carrier.pickup</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Pick-Up">
<header>
<button string="Request pick-up" name="button_request" states="draft" type="object" class="oe_highlight" groups="base.group_user"/>
<field name="state" widget="statusbar" statusbar_visible="draft,confirmed,done"/>
</header>
<sheet>
<div class="oe_title">
<h1>Pick-up request</h1>
</div>
<group name="main_field_group">
<field name="carrier"/>
<field name="address"/>
<field name="earliest"/>
<field name="latest"/>
</group>
<group name="pickings_group">
<field name="pickings"/>
</group>
<group name="misc">
<field name="sc_pickup_id"/>
<field name="carrier_pickup_number"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="delivery_carrier_pickup_tree" model="ir.ui.view">
<field name="name">delivery.carrier.pickup.tree</field>
<field name="model">delivery.carrier.pickup</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="pickup">
<field name="carrier"/>
<field name="carrier_pickup_number"/>
<field name="earliest"/>
<field name="latest"/>
<field name="address"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="action_delivery_carrier_pickup">
<field name="name">Pick-Up</field>
<field name="res_model">delivery.carrier.pickup</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="delivery_carrier_pickup_tree"/>
</record>
<menuitem id="menu_shipping_pickup" parent="stock.menu_stock_warehouse_mgmt" string="Pick-Up" action="action_delivery_carrier_pickup"/>
<act_window id="action_create_pickup" res_model="delivery.carrier.pickup" src_model="stock.picking" target="new" multi="False" key2="client_action_multi" view_mode="form" name="Schedule Pick-Up"/>
</data>
</openerp>