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

For context I did an extension of the model project.project

class equipe(models. Model):
_inherit = 'project.project'

name = fields.Char(string="foo")
voiture = fields.One2many('allmaids_extension.voiture','equipe')

Then if I restart odoo all the name fields of existing project records will appear as empty, without having to update the module than contain the above inheritance. If I remove the name overriding the old values are visible again so I guess that is related to the system defining another line in the database for the overridden field.

My question is in 2 points:

  1. Is the fact that existing values of an overriden field disappear normal or should it be considered a bug?

  2. Is the fact that the change is applied without having to update the module normal should it be considered a bug?

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
syysk. 19
4072
1
elok. 23
3982
0
huhtik. 23
3004
1
jouluk. 21
5030
5
kesäk. 21
17941