Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7299 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Same problem please your help would be precious.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 20
3088
1
ก.ค. 25
2483
1
ก.ค. 25
5949
1
มี.ค. 25
1763
2
ส.ค. 24
2521