Hi Folks,
I have just started understanding openerp. I am customizing it's warehouse & sales modules according to my needs. But i am stuck now. Below is the description of problem, for which i need help:
I want to fetch product location from product_template relation. I will show the fetched product location in tree view of product_product, for which i need to define fields.function(_get_product_loc_case, string='Product Location) function, plz help.
class product_product(osv.osv):
def _get_product_loc_case(self, cr, uid, ids, name, value, args, context=None):
res = {}
for product in self.browse(cr, uid, ids):
res = {'product_loc': product_template.loc_case}
'product_loc': fields.function(_get_product_loc_case, string='Case')
class product_template(osv.osv): 'loc_case': fields.char('Location Case', size=50)
Any help would be appreciated, and sorry if the code is confusing you, coz i really don't know about complex programming in openerp, just trying to learn that....