[FIX] stock: location_id not required on procurement

bzr revid: qdp-launchpad@openerp.com-20131008153521-4noai5fcrpp2hx1u
This commit is contained in:
Quentin (OpenERP)
2013-10-08 17:35:21 +02:00
parent 761253727c
commit b6ff6e4d0a
+1 -1
View File
@@ -90,7 +90,7 @@ class procurement_rule(osv.osv):
class procurement_order(osv.osv):
_inherit = "procurement.order"
_columns = {
'location_id': fields.many2one('stock.location', 'Procurement Location', required=True),
'location_id': fields.many2one('stock.location', 'Procurement Location'), # not required because task may create procurements that aren't linked to a location with project_mrp
'move_ids': fields.one2many('stock.move', 'procurement_id', 'Moves', help="Moves created by the procurement"),
'move_dest_id': fields.many2one('stock.move', 'Destination Move', help="Move which caused (created) the procurement"),
}