0
why there is no module: decimal_precision in my odoo13 local host system ? how to manually install it?
2 Answers
0
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