From b6ff6e4d0a9bd6534188a99ea53d0d58c8dc56c8 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 8 Oct 2013 17:35:21 +0200 Subject: [PATCH] [FIX] stock: location_id not required on procurement bzr revid: qdp-launchpad@openerp.com-20131008153521-4noai5fcrpp2hx1u --- addons/stock/procurement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/procurement.py b/addons/stock/procurement.py index 3402aa6a8b7..2841fb8c0e1 100644 --- a/addons/stock/procurement.py +++ b/addons/stock/procurement.py @@ -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"), }