[FIX] procurement: Fixed dependency problem if purchase is not installed.
bzr revid: uco@tinyerp.com-20100531124926-17an20zujja63cw3
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
'process/procurement_process.xml',
|
||||
"company_view.xml",
|
||||
],
|
||||
# 'demo_xml': ['stock_orderpoint.xml'],
|
||||
'demo_xml': ['stock_orderpoint.xml'],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
'certificate': '',
|
||||
|
||||
@@ -186,8 +186,9 @@ class procurement_order(osv.osv):
|
||||
while ids:
|
||||
ids = orderpoint_obj.search(cr, uid, [], offset=offset, limit=100)
|
||||
for op in orderpoint_obj.browse(cr, uid, ids):
|
||||
if op.procurement_id and op.procurement_id.purchase_id and op.procurement_id.purchase_id.state in ('draft', 'confirmed'):
|
||||
continue
|
||||
if op.procurement_id.state != 'exception':
|
||||
if op.procurement_id and op.procurement_id.purchase_id and op.procurement_id.purchase_id.state in ('draft', 'confirmed'):
|
||||
continue
|
||||
prods = location_obj._product_virtual_get(cr, uid,
|
||||
op.location_id.id, [op.product_id.id],
|
||||
{'uom': op.product_uom.id})[op.product_id.id]
|
||||
|
||||
Reference in New Issue
Block a user