I have created a module which modifies other one (named base
). In the module base
there is the res.partner
model, and in this model there is the field birthdate
:
_columns = {
...
'birthdate': fields.char('Birthdate'),
...
}
What I do in my module is to overwrite this field to make it of type Date
:
birthdate = fields.Date('Birthdate')
Everything seems OK, but, after updating the Odoo server, the data introduced in that column dissapears from the view, and when I check the database, I find that the column birthdate
is being duplicated with other names like birthdate_moved0
, birthdate_moved1
, birthdate_moved2
, etc... (and half of them are of type char and the other half of type date). The values stored in birthdate
are being moved to these other columns (that's the reason bacause I can't see the data in the view, since in the form only birthdate
is being shown).
However, I was able to overwrite several fields through Python. But this duplication problem happened me with the field birthdate
and the field function
of the model res.partner
.
I can't come to a conclussion. Can anyone help me here, please? Thank you in advance!