Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2483 Näkymät

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?

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
syysk. 22
398
1
huhtik. 23
3039
1
heinäk. 21
8694
0
maalisk. 21
2860
2
tammik. 21
5725