Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG][11.0] l10n_us_check_writing_address #35

Merged
merged 21 commits into from
Jul 8, 2019

Conversation

murtuzasaleh
Copy link
Member

@murtuzasaleh murtuzasaleh commented Jun 13, 2019

#17

@murtuzasaleh
Copy link
Member Author

#31

@max3903 max3903 self-requested a review June 13, 2019 14:44
@max3903 max3903 added this to the 11.0 milestone Jun 13, 2019
@Swapnesh-SerpentCS
Copy link

Runbot/Travis is failing due to oca_dependencies.txt, Should be okay once #32 is merged (Which includes required oca_dependencies already)

@max3903
Copy link
Member

max3903 commented Jun 14, 2019

@Swapnesh-SerpentCS We need to be able to test this module before merging #32. Please update oca_dependencies.txt here.

@coveralls
Copy link

coveralls commented Jun 16, 2019

Coverage Status

Coverage decreased (-31.8%) to 58.182% when pulling 6f3207a on murtuzasaleh:11.0-l10n_us_check_writing_address into b6dfb53 on OCA:11.0.

@Swapnesh-SerpentCS
Copy link

@max3903 Travis is Green now. (Runbot checks succeed actually but here its Red, Dont know why)

@max3903
Copy link
Member

max3903 commented Jun 17, 2019

@murtuzasaleh I get the following error message when printing the check (whatever the position) in Runbot:
http://3375140-35-aac053.runbot2.odoo-community.org/web?debug=1#id=2&view_type=form&model=account.payment&menu_id=126&action=132

Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 84, in lookup
    r = d[key]
  File "/.repo_requirements/odoo/odoo/tools/func.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "/.repo_requirements/odoo/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7fe1c6193b70>, 'report.html_container', ('en_US', True, None, None, None, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 84, in lookup
    r = d[key]
  File "/.repo_requirements/odoo/odoo/tools/func.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "/.repo_requirements/odoo/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7fe1c0063048>, 'report.html_container')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 371, in get_template
    document = options.get('load', self.load)(template, options)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 85, in load
    template = env['ir.ui.view'].read_template(name)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1106, in read_template
    return self._read_template(self.get_view_id(xml_id))
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1118, in get_view_id
    return self.env['ir.model.data'].xmlid_to_res_id(template, raise_if_not_found=True)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1359, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)[1]
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1350, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(xmlid)[1:3]
  File "<decorator-gen-21>", line 2, in xmlid_lookup
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 89, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1339, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: report.html_container

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/OCB-11.0/addons/web/controllers/main.py", line 1620, in report_download
    response = self.report_routes(reportname, docids=docids, converter='pdf')
  File "/.repo_requirements/odoo/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/dependencies/reporting-engine/report_xlsx/controllers/main.py", line 43, in report_routes
    reportname, docids, converter, **data
  File "/.repo_requirements/odoo/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/OCB-11.0/addons/web/controllers/main.py", line 1569, in report_routes
    pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
  File "/home/odoo/dependencies/mis-builder/mis_builder/report/mis_report_instance_qweb.py", line 30, in render_qweb_pdf
    render_qweb_pdf(res_ids, data)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_actions_report.py", line 640, in render_qweb_pdf
    html = self.with_context(context).render_qweb_html(res_ids, data=data)[0]
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_actions_report.py", line 678, in render_qweb_html
    return self.render_template(self.report_name, data), 'html'
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_actions_report.py", line 482, in render_template
    return view_obj.render_template(template, values)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1211, in render_template
    return self.browse(self.get_view_id(template)).render(values, engine)
  File "/home/odoo/OCB-11.0/addons/web_editor/models/ir_ui_view.py", line 27, in render
    return super(IrUiView, self).render(values=values, engine=engine)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1220, in render
    return self.env[engine].render(self.id, qcontext)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 57, in render
    return super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 274, in render
    self.compile(template, options)(self, body.append, values or {})
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 347, in _compiled_fn
    raise e
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 345, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_600_314
  File "<decorator-gen-37>", line 2, in compile
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 89, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 77, in compile
    return super(IrQWeb, self).compile(id_or_xml_id, options=options)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 291, in compile
    element, document = self.get_template(template, options)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 375, in get_template
    raise QWebException("load could not load template", name=template)
odoo.addons.base.ir.ir_qweb.qweb.QWebException: None
Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 84, in lookup
    r = d[key]
  File "/.repo_requirements/odoo/odoo/tools/func.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "/.repo_requirements/odoo/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7fe1c6193b70>, 'report.html_container', ('en_US', True, None, None, None, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 84, in lookup
    r = d[key]
  File "/.repo_requirements/odoo/odoo/tools/func.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "/.repo_requirements/odoo/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7fe1c0063048>, 'report.html_container')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 371, in get_template
    document = options.get('load', self.load)(template, options)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 85, in load
    template = env['ir.ui.view'].read_template(name)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1106, in read_template
    return self._read_template(self.get_view_id(xml_id))
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1118, in get_view_id
    return self.env['ir.model.data'].xmlid_to_res_id(template, raise_if_not_found=True)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1359, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)[1]
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1350, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(xmlid)[1:3]
  File "<decorator-gen-21>", line 2, in xmlid_lookup
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 89, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1339, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: report.html_container

load could not load template
Template: report.html_container

@murtuzasaleh
Copy link
Member Author

@murtuzasaleh I get the following error message when printing the check (whatever the position) in Runbot:
http://3375140-35-aac053.runbot2.odoo-community.org/web?debug=1#id=2&view_type=form&model=account.payment&menu_id=126&action=132

Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 84, in lookup
    r = d[key]
  File "/.repo_requirements/odoo/odoo/tools/func.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "/.repo_requirements/odoo/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7fe1c6193b70>, 'report.html_container', ('en_US', True, None, None, None, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 84, in lookup
    r = d[key]
  File "/.repo_requirements/odoo/odoo/tools/func.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "/.repo_requirements/odoo/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7fe1c0063048>, 'report.html_container')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 371, in get_template
    document = options.get('load', self.load)(template, options)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 85, in load
    template = env['ir.ui.view'].read_template(name)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1106, in read_template
    return self._read_template(self.get_view_id(xml_id))
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1118, in get_view_id
    return self.env['ir.model.data'].xmlid_to_res_id(template, raise_if_not_found=True)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1359, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)[1]
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1350, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(xmlid)[1:3]
  File "<decorator-gen-21>", line 2, in xmlid_lookup
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 89, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1339, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: report.html_container

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/OCB-11.0/addons/web/controllers/main.py", line 1620, in report_download
    response = self.report_routes(reportname, docids=docids, converter='pdf')
  File "/.repo_requirements/odoo/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/dependencies/reporting-engine/report_xlsx/controllers/main.py", line 43, in report_routes
    reportname, docids, converter, **data
  File "/.repo_requirements/odoo/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/OCB-11.0/addons/web/controllers/main.py", line 1569, in report_routes
    pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
  File "/home/odoo/dependencies/mis-builder/mis_builder/report/mis_report_instance_qweb.py", line 30, in render_qweb_pdf
    render_qweb_pdf(res_ids, data)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_actions_report.py", line 640, in render_qweb_pdf
    html = self.with_context(context).render_qweb_html(res_ids, data=data)[0]
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_actions_report.py", line 678, in render_qweb_html
    return self.render_template(self.report_name, data), 'html'
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_actions_report.py", line 482, in render_template
    return view_obj.render_template(template, values)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1211, in render_template
    return self.browse(self.get_view_id(template)).render(values, engine)
  File "/home/odoo/OCB-11.0/addons/web_editor/models/ir_ui_view.py", line 27, in render
    return super(IrUiView, self).render(values=values, engine=engine)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1220, in render
    return self.env[engine].render(self.id, qcontext)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 57, in render
    return super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 274, in render
    self.compile(template, options)(self, body.append, values or {})
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 347, in _compiled_fn
    raise e
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 345, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_600_314
  File "<decorator-gen-37>", line 2, in compile
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 89, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 77, in compile
    return super(IrQWeb, self).compile(id_or_xml_id, options=options)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 291, in compile
    element, document = self.get_template(template, options)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 375, in get_template
    raise QWebException("load could not load template", name=template)
odoo.addons.base.ir.ir_qweb.qweb.QWebException: None
Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 84, in lookup
    r = d[key]
  File "/.repo_requirements/odoo/odoo/tools/func.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "/.repo_requirements/odoo/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7fe1c6193b70>, 'report.html_container', ('en_US', True, None, None, None, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 84, in lookup
    r = d[key]
  File "/.repo_requirements/odoo/odoo/tools/func.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "/.repo_requirements/odoo/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7fe1c0063048>, 'report.html_container')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 371, in get_template
    document = options.get('load', self.load)(template, options)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 85, in load
    template = env['ir.ui.view'].read_template(name)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1106, in read_template
    return self._read_template(self.get_view_id(xml_id))
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1118, in get_view_id
    return self.env['ir.model.data'].xmlid_to_res_id(template, raise_if_not_found=True)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1359, in xmlid_to_res_id
    return self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)[1]
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1350, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(xmlid)[1:3]
  File "<decorator-gen-21>", line 2, in xmlid_lookup
  File "/.repo_requirements/odoo/odoo/tools/cache.py", line 89, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/.repo_requirements/odoo/odoo/addons/base/ir/ir_model.py", line 1339, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: report.html_container

load could not load template
Template: report.html_container

Done

@max3903
Copy link
Member

max3903 commented Jun 26, 2019

Ping @serenacyr

@max3903
Copy link
Member

max3903 commented Jul 8, 2019

/ocabot merge

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Rebased to 11.0-ocabot-merge-pr-35-by-max3903-bump-no, awaiting test results.

@max3903 max3903 merged commit cca354b into OCA:11.0 Jul 8, 2019
@sbidoul
Copy link
Member

sbidoul commented Jul 8, 2019

@max3903 the bot could not generate the readme. I'll check why this error was not reported on the PR.
Fixed at 952232f. Please ping me when you see unexpected behaviour of the bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants