تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1971 أدوات العرض

Hey, in previous version of odoo (v.12) we specified account.tax record like this:


<odoo>
<
data>
<
record model="account.tax" id="hemma_tax_st0">
<
field name="name">Utgående moms 0%</field>
<
field name="type_tax_use">sale</field>
<
field name="amount_type">percent</field>
<
field name="amount">0.0</field>
<
field name="account_id" ref="l10n_se.1_coa_2631"/>
<
field name="refund_account_id" ref="l10n_se.1_coa_2631"/>
<
field name="description">ST0</field>
<
/record>
<
/data>
<
/odoo>



But it seems like account_id and refund_account_id doesn't exist anymore, how do we migrate our code?

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

If you check the odoo source code, you can find a lot of source code which add's data into this model, ie, account.tax and you can refer one among them and map your record in a way it is compatible to odoo 14

Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 22
398
1
أبريل 23
2128
1
يوليو 21
7738
0
مارس 21
2308
2
يناير 21
4879