[FIX] sale: when qty change, procurement should not changed in sale order line
lp bug: https://launchpad.net/bugs/524295 fixed bzr revid: hmo@tinyerp.com-20100219125526-kf1fy92wvjj9d7fh
This commit is contained in:
parent
31acd18ea6
commit
0d1448310c
|
@ -981,8 +981,7 @@ class sale_order_line(osv.osv):
|
|||
if product_obj.uos_id.category_id.id != uos2.category_id.id:
|
||||
uos = False
|
||||
else:
|
||||
uos = False
|
||||
result.update({'type': product_obj.procure_method})
|
||||
uos = False
|
||||
if product_obj.description_sale:
|
||||
result['notes'] = product_obj.description_sale
|
||||
fpos = fiscal_position and self.pool.get('account.fiscal.position').browse(cr, uid, fiscal_position) or False
|
||||
|
@ -990,6 +989,8 @@ class sale_order_line(osv.osv):
|
|||
result['delay'] = (product_obj.sale_delay or 0.0)
|
||||
partner = partner_obj.browse(cr, uid, partner_id)
|
||||
result['tax_id'] = self.pool.get('account.fiscal.position').map_tax(cr, uid, fpos, product_obj.taxes_id)
|
||||
result.update({'type': product_obj.procure_method})
|
||||
|
||||
if not flag:
|
||||
result['name'] = self.pool.get('product.product').name_get(cr, uid, [product_obj.id], context=context)[0][1]
|
||||
domain = {}
|
||||
|
|
Loading…
Reference in New Issue