odoo_addons icon indicating copy to clipboard operation
odoo_addons copied to clipboard

Error to render compiling AST KeyError: 'digits'

Open bitsnaps opened this issue 3 years ago • 0 comments

Hi, I got an error when trying to print Manufacturing Order Report in MRP module at smile_decimal_precision/report/ir_qweb.py, it says Error to render compiling AST KeyError: 'digits', looks like there is no digits key in self.env, wouldn't be better to check if digits key available first?

https://github.com/Smile-SA/odoo_addons/blob/3ad7f33c0e8497d6eaf810c884c1339a88214bc9/smile_decimal_precision/report/ir_qweb.py#L11

Using: Odoo v11.0 CE.

bitsnaps avatar Jan 09 '22 15:01 bitsnaps