[IMP] stock: multi-company support for stock.location.route

bzr revid: qdp-launchpad@openerp.com-20140127100142-6uote78gnvf55qkb
This commit is contained in:
Quentin (OpenERP) 2014-01-27 11:01:42 +01:00
parent 7acaac732c
commit d3c1bc4a48
2 changed files with 3 additions and 0 deletions

View File

@ -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),
}

View File

@ -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>