[FIX] purchase: maximum recursion when write on minimum_planned_date
Do not write on the function field when you are writing on the function field. - Now you do know what orders is right? - I think I know... - Orders is orders. - I guess no one ever taught you not to use the word you're defining in the definition. ~~Lucky Number Slevin
This commit is contained in:
parent
dcfd94cbf5
commit
8598231763
|
@ -65,7 +65,6 @@ class purchase_order(osv.osv):
|
||||||
('order_id', '=', po.id), '|', ('date_planned', '=', po.minimum_planned_date), ('date_planned', '<', value)
|
('order_id', '=', po.id), '|', ('date_planned', '=', po.minimum_planned_date), ('date_planned', '<', value)
|
||||||
], context=context)
|
], context=context)
|
||||||
pol_obj.write(cr, uid, pol_ids, {'date_planned': value}, context=context)
|
pol_obj.write(cr, uid, pol_ids, {'date_planned': value}, context=context)
|
||||||
self.pool.get('purchase.order').write(cr, uid, po.id, {'minimum_planned_date': value}, context=context)
|
|
||||||
self.invalidate_cache(cr, uid, context=context)
|
self.invalidate_cache(cr, uid, context=context)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
partner_id: base.res_partner_3
|
partner_id: base.res_partner_3
|
||||||
location_id: stock.stock_location_3
|
location_id: stock.stock_location_3
|
||||||
pricelist_id: 1
|
pricelist_id: 1
|
||||||
|
minimum_planned_date: '2011-08-31'
|
||||||
order_line:
|
order_line:
|
||||||
- product_id: product.product_product_33
|
- product_id: product.product_product_33
|
||||||
product_qty: 10.0
|
product_qty: 10.0
|
||||||
|
|
Loading…
Reference in New Issue