Odoo Help

0

Convert string into function

By
le_dilem
on 5/2/14, 10:13 AM 772 views

Hi

I have 3 fields that contain

obj_fields = 'hr.irg.calcul'

function_fields = '_get_method_irg'

quantity = 30000

I want to have this result :

 self.pool.get('hr.irg.calcul')._get_method_irg(30000)

I did this :

self.pool.get(obj_fields).function_fields(30000)

but my problem it's function_fields ho can i convert string '_get_method_irg' ?

Thx for your Help.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 5/2/14, 10:13 AM
Seen: 772 times
Last updated: 3/16/15, 8:10 AM