[FIX] purchase: let purchase.order _get_picking_in() function fetch the default value
Closes #7057
This commit is contained in:
committed by
Nicolas Martinelli
parent
230af35154
commit
1306d6e153
@@ -1,7 +1,3 @@
|
||||
-
|
||||
!python {model: ir.values}: |
|
||||
whr = self.pool.get('stock.warehouse').browse(cr, uid, ref('stock.warehouse0'), context=context)
|
||||
self.set_default(cr, uid, 'purchase.order', 'picking_type_id', whr.in_type_id.id, for_all_users=True, company_id=True, condition=False)
|
||||
-
|
||||
!python {model: stock.warehouse}: |
|
||||
#enable purchase on main warehouse
|
||||
|
||||
Reference in New Issue
Block a user