summaryrefslogtreecommitdiff
path: root/addons/project_mrp
diff options
context:
space:
mode:
authorJosse Colpaert <jco@openerp.com>2013-09-16 11:37:10 +0200
committerJosse Colpaert <jco@openerp.com>2013-09-16 11:37:10 +0200
commit17258b6a9acf6421713ffd9c8d46aab0b2bbf73e (patch)
tree10ca8756ed97a3244bd6918a0a5b6dd94635c03f /addons/project_mrp
parentbf7a359abe49c83ef74aca8401fe970d3b68e570 (diff)
[IMP] When stock is installed and there is a rule for a product of type service, do not apply rule
bzr revid: jco@openerp.com-20130916093710-6gweaj5o0yp20ry5
Diffstat (limited to 'addons/project_mrp')
-rw-r--r--addons/project_mrp/project_mrp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project_mrp/project_mrp.py b/addons/project_mrp/project_mrp.py
index 231132a7e27..7c478b63ad6 100644
--- a/addons/project_mrp/project_mrp.py
+++ b/addons/project_mrp/project_mrp.py
@@ -165,7 +165,7 @@ class sale_order(osv.osv):
def _check_create_procurement(self, cr, uid, order, line, context=None):
create = super(sale_order, self)._check_create_procurement(cr, uid, order, line, context=context)
if (line.product_id.type== "service" and not line.product_id.auto_create_task):
- create = True
+ create = False
return create
def _picked_rate(self, cr, uid, ids, name, arg, context=None):