Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7284 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Same problem please your help would be precious.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 20
3078
1
thg 7 25
2435
1
thg 7 25
5776
1
thg 3 25
1744
2
thg 8 24
2509