Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
7372 Weergaven

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

Avatar
Annuleer
Beste antwoord

try:

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

Avatar
Annuleer
Beste antwoord

Same problem please your help would be precious.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
dec. 20
3149
1
jul. 25
2617
1
jul. 25
6601
1
mrt. 25
1905
2
aug. 24
2630