[IMP] stock: multi-company support for stock.location.route
bzr revid: qdp-launchpad@openerp.com-20140127100142-6uote78gnvf55qkb
This commit is contained in:
parent
7acaac732c
commit
d3c1bc4a48
|
@ -171,12 +171,14 @@ class stock_location_route(osv.osv):
|
|||
'warehouse_selectable': fields.boolean('Applicable on Warehouse'),
|
||||
'supplied_wh_id': fields.many2one('stock.warehouse', 'Supplied Warehouse'),
|
||||
'supplier_wh_id': fields.many2one('stock.warehouse', 'Supplier Warehouse'),
|
||||
'company_id': fields.many2one('res.company', 'Company', select=1, help='Let this field empty if this route is shared between all companies'),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
'sequence': lambda self, cr, uid, ctx: 0,
|
||||
'active': True,
|
||||
'product_selectable': True,
|
||||
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'stock.location.route', context=c),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2081,6 +2081,7 @@
|
|||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
||||
<field name="sequence" string="Sequence" groups="base.group_no_one"/>
|
||||
</group>
|
||||
<group>
|
||||
|
|
Loading…
Reference in New Issue