Reputation: 232
I'm getting an error
ImportError: No module named 'odoo.report'
while converting my codes from odoo version 10 to odoo version 11. My code is given below and how can I use those following code in Odoo 11?
from odoo.report.render.rml2pdf import utils
from odoo.report.render.rml2pdf import color
Thanks in advance
Upvotes: 1
Views: 3617
Reputation: 664
In odoo 11 no need to use odoo.report lib. It is deprecated. You can use odoo.tools
insted of that.
Just import it with following statement:
from odoo.tools import report
Upvotes: 1