Ir al contenido
Menú
Se marcó esta pregunta
1842 Vistas

I am trying to investigate an issue where suddenly Odoo tried to alter the volume field of our product.template from Numeric to Floating Precision.


This field originally had no digits decimal precision. However, one of our modules inherits to add:

volume = fields.Float('Volume', digits=dp.get_precision('Stock Volume'),...

 I saw in the code that if no digits is specified, the column is a floating precision and if one is specified it becomes numeric.


Currently it is already numeric but I don't understand why it tried to alter the DB back to a floating precision. No module upgrade was run.


What could cause such a behaviour?


Thanks

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 22
2630
2
abr 17
7424
2
mar 16
7827
3
dic 23
22964
0
may 15
3630