Public bug reported:
in V6, when creating an invoice, adding a product, there is a call at the
function product_id_change.
In this function there is a search for default accounting properties which
seems wrong:
Following part
if not in_pro_id:
in_pro_id = property_obj.search(cr, uid,
[('name','=','property_account_income_categ'),('res_id','=','product.template,'+str(res.categ_id.id)+''),('company_id','=',company_id)])
Should be
in_pro_id = property_obj.search(cr, uid,
[('name','=','property_account_income_categ'),('res_id','=','product.category,'+str(res.categ_id.id)+''),('company_id','=',company_id)])
and
if not exp_pro_id:
exp_pro_id = property_obj.search(cr, uid,
[('name','=','property_account_expense_categ'),('res_id','=','product.template,'+str(res.categ_id.id)+''),('company_id','=',company_id)])
should be:
if not exp_pro_id:
exp_pro_id = property_obj.search(cr, uid,
[('name','=','property_account_expense_categ'),('res_id','=','product.category,'+str(res.categ_id.id)+''),('company_id','=',company_id)])
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/853070
Title:
product property lookup function invalid
Status in OpenERP Addons (modules):
New
Bug description:
in V6, when creating an invoice, adding a product, there is a call at the
function product_id_change.
In this function there is a search for default accounting properties which
seems wrong:
Following part
if not in_pro_id:
in_pro_id = property_obj.search(cr, uid,
[('name','=','property_account_income_categ'),('res_id','=','product.template,'+str(res.categ_id.id)+''),('company_id','=',company_id)])
Should be
in_pro_id = property_obj.search(cr, uid,
[('name','=','property_account_income_categ'),('res_id','=','product.category,'+str(res.categ_id.id)+''),('company_id','=',company_id)])
and
if not exp_pro_id:
exp_pro_id = property_obj.search(cr, uid,
[('name','=','property_account_expense_categ'),('res_id','=','product.template,'+str(res.categ_id.id)+''),('company_id','=',company_id)])
should be:
if not exp_pro_id:
exp_pro_id = property_obj.search(cr, uid,
[('name','=','property_account_expense_categ'),('res_id','=','product.category,'+str(res.categ_id.id)+''),('company_id','=',company_id)])
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/853070/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp