Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

why there is no module: decimal_precision in my odoo13 local host system ? how to manually install it?

形象
odoo
形象
丢弃
2 答案
0
形象
odoo
最佳答案

Hi,

in odoo13 there is no module named decimlal_precision , it has got merged in base. Open the manifest file and remove the dependency, decimlal_precision  given.


And in the model.py file, remove this import,

from odoo.addons import decimal_precision as dp


and you can define the field like this,

price_unit = fields.Float('Unit Price', required=True, digits='Product Price', default=0.0)

and if you are new to odoo development, check this: Odoo13 Development Tutorials


Thanks

形象
丢弃
0
形象
odoo
最佳答案

Thanks  a lot

形象
丢弃