跳至內容
選單
此問題已被標幟
1 回覆
2998 瀏覽次數

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 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
4月 25
2710
1
2月 25
5052
0
1月 24
2063
2
10月 23
2002
1
6月 21
3271