Odoo integration of Deutsche Post Internetmarke Online Franking
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
2.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_picking_withlabel_form_view" 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="dp_shipment_number" attrs="{'invisible':[('delivery_type', '!=', 'dp')]}"/>
</xpath>
</field>
</record>
<record id="shipping_dp_form" model="ir.ui.view">
<field name="name">shipping.dp.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="DP Shipping Infomation " attrs="{'invisible':[('delivery_type', '!=', 'dp')]}">
<field name="dp_service_type" attrs="{'required':[('delivery_type', '==', 'dp')]}" />
</group>
</xpath>
</field>
</record>
<record id="delivery_carrier_dp_service_form" model="ir.ui.view">
<field name="name">delivery.carrier.dp.service.form</field>
<field name="model">delivery.carrier.dp.service</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="name"/>
<field name="short_name"/>
<field name="code"/>
<field name="prodws_id"/>
<field name="international"/>
<field name="cost_price"/>
</group>
<group>
<field name="weight"/>
<field name="height"/>
<field name="width"/>
<field name="length"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="delivery_carrier_dp_service_tree" model="ir.ui.view">
<field name="name">delivery.carrier.dp.service.tree</field>
<field name="model">delivery.carrier.dp.service</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="package">
<field name="name"/>
<field name="short_name"/>
<field name="code"/>
<field name="prodws_id"/>
<field name="cost_price"/>
<field name="weight"/>
<field name="height"/>
<field name="width"/>
<field name="length"/>
<field name="international"/>
</tree>
</field>
</record>
<menuitem id="menu_shipping_dp" name="DP Services" parent="delivery.menu_delivery" string="UPS" />
<menuitem id="menu_shipping_dp_service" parent="menu_shipping_dp" string="Service Type" action="action_delivery_carrier_dp_service"/>
</data>
</openerp>