Odoo Help


get default tax using code ?

Yug Faa
on 5/3/13, 12:55 PM 2,359 views

Hi everybody

I want to get the default sale using the code,

I use the OERP 7.0, and I think that I cant retrieve the account.config.settings object because it has field named default_sale_tax but this object is empty, and in the accounting config I find the tax is setted

Now I have a method that have to return the default tax_id but which object and which field ?

Thank you



| 5 4 6
Zagreb | Karlovac, Croatia

there is only 10 kind of people the ones that understand binary ... and others

On 6/20/13, 8:46 PM


ir_values = self.pool.get('ir.values')
taxes_id = ir_values.get_default(cr, uid, 'product.product', 'taxes_id', company_id=company_id)

p.s. if you are not using multicompany..: company_id=1

On 5/15/13, 10:49 AM

Same problem please your help would be precious.

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


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)


Asked: 5/3/13, 12:55 PM
Seen: 2359 times
Last updated: 3/16/15, 8:10 AM