Skip to content

Commit

Permalink
[ADD] Add sequence handle for picking types and action_view_routes fo…
Browse files Browse the repository at this point in the history
…r product_product
  • Loading branch information
jco-odoo committed Jun 2, 2014
1 parent 18696cd commit e4521e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addons/stock/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None,
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'
Expand Down
1 change: 1 addition & 0 deletions addons/stock/stock_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down

0 comments on commit e4521e4

Please sign in to comment.