Browse Source

views: add search and fixe DP Service List

for/master
Harald Welte 5 years ago
parent
commit
2230af6907
  1. 17
      views/dp_delivery_carrier.xml

17
views/dp_delivery_carrier.xml

@ -69,6 +69,23 @@
</tree>
</field>
</record>
<record id="view_dp_shipping_search" model="ir.ui.view">
<field name="name">stock.picking.dp.shipping.search</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="odoo_shipping_service_apps.view_picking_shipping_search"/>
<field name="arch" type="xml">
<filter name="draft" position="after">
<filter icon="terp-check" name="DP" string="Deutsche Post" domain="[('delivery_type','=','dp')]" help="Picking shipped by Deutsche Post"/>
</filter>
</field>
</record>
<record model="ir.actions.act_window" id="action_delivery_carrier_dp_service">
<field name="name">DP Service List</field>
<field name="res_model">delivery.carrier.dp.service</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="delivery_carrier_dp_service_tree"/>
</record>
<menuitem id="menu_shipping_dp" name="DP Services" parent="delivery.menu_delivery" string="Deutsche Post" />
<menuitem id="menu_shipping_dp_service" parent="menu_shipping_dp" string="Service Type" action="action_delivery_carrier_dp_service"/>
</data>

Loading…
Cancel
Save