跳至內容
選單
此問題已被標幟
1993 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 22
2835
2
4月 17
7633
2
3月 16
7956
3
12月 23
23312
0
5月 15
3739