Odoo Help

Welcome!

This community 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.

0

Convert string into function

By
le_dilem
on 5/2/14, 10:13 AM 596 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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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