Odoo Help


Create new tax alloting existing Tax Account (1005: Sales Tax receiveable) from new module

on 18-1-3 上午11:57 256 views


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>

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


Pinakin Nayi (pna)

--Pinakin Nayi (pna)--
| 2 2 5
Ahmedabad, 印度
--Pinakin Nayi (pna)--

He has good skills in problem identification and implementation of effective solutions. He is working in Odoo India.

Skype: pinakinerp

LinkedIn : https://www.linkedin.com/in/pinakin-nayi-2a33103a/


Pinakin Nayi (pna)
On 18-1-4 上午6:39

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 

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

1 follower(s)


Asked: 18-1-3 上午11:57
Seen: 256 times
Last updated: 18-1-4 上午6:39