Skip to content
Snippets Groups Projects
Commit b73d7667 authored by Dimple Soni's avatar Dimple Soni Committed by Thibault Delavallée
Browse files

[IMP] sale_stock: warehouse_id field on sale order is now readonly, except in...

[IMP] sale_stock: warehouse_id field on sale order is now readonly, except in draft and sent states.
parent 674f248c
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ class sale_order(osv.osv):
'shipped': fields.function(_get_shipped, string='Delivered', type='boolean', store={
'procurement.order': (_get_orders_procurements, ['state'], 10)
}),
'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse', required=True),
'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse', required=True, readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}),
'picking_ids': fields.function(_get_picking_ids, method=True, type='one2many', relation='stock.picking', string='Picking associated to this sale'),
}
_defaults = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment