[REVERT] reverted price_unit changes

bzr revid: bde@tinyerp.com-20130827091217-9l7wbz2v6weaxuoz
This commit is contained in:
Bharat R. Devnani (OpenERP) 2013-08-27 14:42:17 +05:30
parent 0f1d5c92c8
commit cc4764f48f
1 changed files with 1 additions and 7 deletions

View File

@ -1082,10 +1082,4 @@ class procurement_order(osv.osv):
_defaults = {
'invoice_state': 'none',
}
def _run_move_create(self, cr, uid, procurement, context=None):
res = super(procurement_order, self)._run_move_create(cr, uid, procurement, context=context)
res.update({
'price_unit': procurement.sale_line_id and procurement.sale_line_id.product_id and procurement.sale_line_id.product_id.standard_price or 0.0,
})
return res