Help

欢迎!

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


0

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

Avatar
odoo
Avatar
Discard
2 Answers
0
Avatar
odoo
Best Answer

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

Avatar
Discard
0
Avatar
odoo
Best Answer

Thanks  a lot

Avatar
Discard