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.
odoo_shipcloud/views/sc_delivery_carrier.xml

74 lines
2.9 KiB

<openerp>
<data>
<record id="view_picking_withlabel_form_view_sc" model="ir.ui.view">
<field name="name">delivery.stock.picking_withlabel.form.view</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="odoo_shipping_service_apps.view_picking_withlabel_form_view"/>
<field name="arch" type="xml">
<xpath expr="//label[@for='carrier_tracking_ref']" position="before">
<field name="sc_shipment_id" attrs="{'invisible':[('delivery_type', '!=', 'sc')]}"/>
<field name="sc_content_desc" attrs="{'invisible':[('delivery_type', '!=', 'sc')]}"/>
<field name="sc_tracking_state" attrs="{'invisible':[('delivery_type', '!=', 'sc')]}"/>
</xpath>
</field>
</record>
<record id="shipping_sc_form" model="ir.ui.view">
<field name="name">shipping.sc.form</field>
<field name="model">delivery.carrier</field>
<field name="type">form</field>
<field name="inherit_id" ref="odoo_shipping_service_apps.view_delivery_carrier_form_inherit_wk_shipping"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='Delivery Setting']" col='2' position="after">
<group string="SC Shipping Information" attrs="{'invisible':[('delivery_type', '!=', 'sc')]}">
<field name="sc_carrier_service" attrs="{'required':[('delivery_type', '==', 'sc')]}"/>
</group>
</xpath>
</field>
</record>
<record id="delivery_carrier_sc_service_form" model="ir.ui.view">
<field name="name">delivery.carrier.sc.carrier_service.form</field>
<field name="model">delivery.carrier.sc.carrier_service</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="name"/>
</group>
<group>
<field name="carrier"/>
<field name="service"/>
</group>
<group>
<field name="label_size"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="delivery_carrier_sc_service_tree" model="ir.ui.view">
<field name="name">delivery.carrier.sc.carrier_service.tree</field>
<field name="model">delivery.carrier.sc.carrier_service</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="package">
<field name="name"/>
<field name="carrier"/>
<field name="service"/>
<field name="label_size"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="action_delivery_carrier_sc_service">
<field name="name">SC Carrier Services</field>
<field name="res_model">delivery.carrier.sc.carrier_service</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="delivery_carrier_sc_service_tree"/>
</record>
<menuitem id="menu_shipping_sc_service" parent="delivery.menu_delivery" string="SC Carrier Service" action="action_delivery_carrier_sc_service"/>
</data>
</openerp>