Fix : Bug #373186:
bzr revid: apa@tinyerp.com-20090508072020-x4sbncr6d2a3x720
This commit is contained in:
parent
806dcd00b8
commit
3dbc04b030
|
@ -77,7 +77,8 @@ class account_analytic_line(osv.osv):
|
|||
unit=False, context=None):
|
||||
uom_obj = self.pool.get('product.uom')
|
||||
product_obj = self.pool.get('product.product')
|
||||
if unit_amount and prod_id:
|
||||
# if unit_amount and prod_id:
|
||||
if prod_id:
|
||||
prod = product_obj.browse(cr, uid, prod_id)
|
||||
a = prod.product_tmpl_id.property_account_expense.id
|
||||
if not a:
|
||||
|
|
|
@ -56,7 +56,8 @@ class hr_analytic_timesheet(osv.osv):
|
|||
|
||||
def on_change_unit_amount(self, cr, uid, id, prod_id, unit_amount, unit, context={}):
|
||||
res = {}
|
||||
if prod_id and unit_amount:
|
||||
# if prod_id and unit_amount:
|
||||
if prod_id:
|
||||
res = self.pool.get('account.analytic.line').on_change_unit_amount(cr, uid, id, prod_id, unit_amount,unit, context)
|
||||
return res
|
||||
|
||||
|
|
Loading…
Reference in New Issue