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

Team,

I am trying to create bunch of taxes and was able to create succesfully.

However, How should I add Tax account as "1005 Sales Tax Receivable" to newly taxes which are to be created.

Here is my code where I created taxes succesfully..


<record id="tax_5" model="account.tax">
<field name="name">Tax 5%</field>
<field name="type_tax_use">sale</field>
<field name="amount_type">percent</field>
<field name="amount">5</field>
<field name="account_id">1005</field>
</record>

Account_id is the field name and mentioning 1005 or even "1005 Sales Tax Receivable" or "Sales Tax Receivable" .. nothing works here..

Please advice what I am missing.. ?

This is very urgent for me.. Appreciate your support everyone..

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

You cannot directly assign name !!  You have to give xml_id like : <field name="account_id" ref="p11234"/> . here in ref I have passed xml_id 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Corporate Tax For UAE In Odoo 17 ? แก้ไขแล้ว
2
เม.ย. 25
2702
Taxes in Odoo accounting แก้ไขแล้ว
1
ก.พ. 25
5025
0
ม.ค. 24
2034
2
ต.ค. 23
1981
1
มิ.ย. 21
3236