[ADD] Add sequence handle for picking types and action_view_routes for product_product

This commit is contained in:
Josse Colpaert 2014-06-02 13:35:45 +02:00
parent 18696cd7bc
commit e4521e4681
2 changed files with 7 additions and 0 deletions

View File

@ -277,6 +277,12 @@ class product_product(osv.osv):
res['fields']['qty_available']['string'] = _('Produced Qty')
return res
def action_view_routes(self, cr, uid, ids, context=None):
template_obj = self.pool.get("product.template")
templ_ids = list(set([x.product_tmpl_id.id for x in self.browse(cr, uid, ids, context=context)]))
return template_obj.action_view_routes(cr, uid, templ_ids, context=context)
class product_template(osv.osv):
_name = 'product.template'
_inherit = 'product.template'

View File

@ -1354,6 +1354,7 @@
<field name="model">stock.picking.type</field>
<field name="arch" type="xml">
<tree string="Picking Types">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="warehouse_id"/>
<field name="sequence_id"/>