[IMP] make changes into thehr_expense module

bzr revid: rma@tinyerp.com-20121003095003-98n5tb4tcscn0o07
This commit is contained in:
Randhir Mayatra (OpenERP) 2012-10-03 15:20:03 +05:30
parent be0bf6e4e6
commit 60f3b375bb
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ This module also uses analytic accounting and is compatible with the invoice on
'author': 'OpenERP SA',
'website': 'http://www.openerp.com',
'images': ['images/hr_expenses_analysis.jpeg', 'images/hr_expenses.jpeg'],
'depends': ['hr', 'account_voucher','procurement'],
'depends': ['hr', 'account_voucher'],
'data': [
'security/ir.model.access.csv',
'hr_expense_data.xml',

View File

@ -243,7 +243,7 @@ class product_product(osv.osv):
data_obj = self.pool.get('ir.model.data')
cat_id = data_obj._get_id(cr, uid, 'hr_expense', 'cat_expense')
categ_id = data_obj.browse(cr, uid, cat_id).res_id
res = {'value' : {'type':'service','procure_method':'make_to_stock','supply_method':'buy','purchase_ok':True,'sale_ok' :False,'categ_id':categ_id }}
res = {'value' : {'type':'service','purchase_ok':True,'sale_ok' :False,'categ_id':categ_id }}
return res
product_product()