How to call a method in odoo 7?
问题 I've created a method and I was using field function to call the method. But, the method never executes. here is my code : def _get_data_from_puchase_order(self, cr, ids, field, arg, context=None): print "SUCCESS" print ":::::::::::::::::" result = {} for row in self.browse(cr, uid, ids): print row print "::::::::::::" _columns = { "data_purchase_product" : fields.function(_get_data_from_puchase_order, method=True, string='origin', type='char', strore=False) } i was add : for data in self