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

[WIP][MIG][11.0] l10n_us_check_writing_address #31

Closed

Conversation

murtuzasaleh
Copy link
Member

@murtuzasaleh murtuzasaleh commented May 24, 2019

#17

@oca-clabot
Copy link

Hey @murtuzasaleh, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@max3903 max3903 self-requested a review May 24, 2019 13:29
@max3903 max3903 added this to the 12.0 milestone May 24, 2019
@max3903

This comment has been minimized.

@max3903 max3903 closed this May 24, 2019
@max3903 max3903 removed their request for review May 24, 2019 13:40
@murtuzasaleh
Copy link
Member Author

@max3903 It is for 11.0 but by mistake, I gave 12.0 in the title and commit message.

@max3903 max3903 reopened this May 24, 2019
@max3903 max3903 changed the title [WIP][MIG][12.0] l10n_us_check_writing_address [WIP][MIG][11.0] l10n_us_check_writing_address May 24, 2019
@max3903 max3903 self-requested a review May 24, 2019 18:08
@murtuzasaleh murtuzasaleh force-pushed the l10n_us_check_writing_address_v11 branch from 791660b to 11bdcf2 Compare May 25, 2019 04:34
@murtuzasaleh murtuzasaleh force-pushed the l10n_us_check_writing_address_v11 branch from 11bdcf2 to 1da456b Compare May 25, 2019 05:17
@murtuzasaleh
Copy link
Member Author

murtuzasaleh commented May 25, 2019

@max3903 When I click on Payment << Print Checks It's given me an error because of account_check_printing_report_base << Payment Check Base Report.

`Error:
Odoo Server Error

Traceback (most recent call last):
File "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_qweb/qweb.py", line 345, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_566_289
File "", line 2, in body_call_content_288
File "", line 5, in foreach_287
File "", line 27, in foreach_286
KeyError: 3

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/serpentcs/workspace/odoo_v11/addons/web/controllers/main.py", line 1620, in report_download
response = self.report_routes(reportname, docids=docids, converter='pdf')
File "/home/serpentcs/workspace/odoo_v11/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/home/serpentcs/workspace/odoo_v11/addons/web/controllers/main.py", line 1569, in report_routes
pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
File "/home/serpentcs/workspace/odoo_v11/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 "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_actions_report.py", line 678, in render_qweb_html
return self.render_template(self.report_name, data), 'html'
File "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_actions_report.py", line 482, in render_template
return view_obj.render_template(template, values)
File "/home/serpentcs/workspace/odoo_v11/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/serpentcs/workspace/odoo_v11/addons/web_editor/models/ir_ui_view.py", line 27, in render
return super(IrUiView, self).render(values=values, engine=engine)
File "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_ui_view.py", line 1220, in render
return self.env[engine].render(self.id, qcontext)
File "/home/serpentcs/workspace/odoo_v11/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 "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_qweb/qweb.py", line 274, in render
self.compile(template, options)(self, body.append, values or {})
File "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_qweb/qweb.py", line 352, in _compiled_fn
raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)
odoo.addons.base.ir.ir_qweb.qweb.QWebException: 3
Traceback (most recent call last):
File "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_qweb/qweb.py", line 345, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_566_289
File "", line 2, in body_call_content_288
File "", line 5, in foreach_287
File "", line 27, in foreach_286
KeyError: 3

Error to render compiling AST
KeyError: 3
Template: 566
Path: /templates/t/t/div[2]/t/div/div/div[2]/div/t/table/tbody/t
Node: < t t-foreach="paid_lines[o.id]" t-as="line">
< tr style="text-align:left;border-top: 0px;">
< td style="padding-top:3mm;">
< span t-esc="line['date_due']"/>
< /td>
< td>
< span t-esc="line['reference'] or line['number']"/>
< /td>
< td>
< span t-esc="line['amount_total']" t-esc-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
< /td>
< td>
< span t-esc="line['residual']" t-esc-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
< /td>
< td>
< span t-esc="line['paid_amount']" t-esc-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
< /td>
< /tr>
< /t>`

Also checked in account-payment repo runbot same issue found.

@max3903
Copy link
Sponsor Member

max3903 commented May 30, 2019

@murtuzasaleh If you can fix the issue in account-payment within 4 hours, please do it, otherwise let me know your estimate.

@Swapnesh-SerpentCS
Copy link

@max3903 When I click on Payment << Print Checks It's given me an error because of account_check_printing_report_base << Payment Check Base Report.

`Error:
Odoo Server Error

Traceback (most recent call last):
File "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_qweb/qweb.py", line 345, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_566_289
File "", line 2, in body_call_content_288
File "", line 5, in foreach_287
File "", line 27, in foreach_286
KeyError: 3

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/serpentcs/workspace/odoo_v11/addons/web/controllers/main.py", line 1620, in report_download
response = self.report_routes(reportname, docids=docids, converter='pdf')
File "/home/serpentcs/workspace/odoo_v11/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/home/serpentcs/workspace/odoo_v11/addons/web/controllers/main.py", line 1569, in report_routes
pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
File "/home/serpentcs/workspace/odoo_v11/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 "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_actions_report.py", line 678, in render_qweb_html
return self.render_template(self.report_name, data), 'html'
File "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_actions_report.py", line 482, in render_template
return view_obj.render_template(template, values)
File "/home/serpentcs/workspace/odoo_v11/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/serpentcs/workspace/odoo_v11/addons/web_editor/models/ir_ui_view.py", line 27, in render
return super(IrUiView, self).render(values=values, engine=engine)
File "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_ui_view.py", line 1220, in render
return self.env[engine].render(self.id, qcontext)
File "/home/serpentcs/workspace/odoo_v11/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 "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_qweb/qweb.py", line 274, in render
self.compile(template, options)(self, body.append, values or {})
File "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_qweb/qweb.py", line 352, in _compiled_fn
raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)
odoo.addons.base.ir.ir_qweb.qweb.QWebException: 3
Traceback (most recent call last):
File "/home/serpentcs/workspace/odoo_v11/odoo/addons/base/ir/ir_qweb/qweb.py", line 345, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_566_289
File "", line 2, in body_call_content_288
File "", line 5, in foreach_287
File "", line 27, in foreach_286
KeyError: 3

Error to render compiling AST
KeyError: 3
Template: 566
Path: /templates/t/t/div[2]/t/div/div/div[2]/div/t/table/tbody/t
Node: < t t-foreach="paid_lines[o.id]" t-as="line">
< tr style="text-align:left;border-top: 0px;">
< td style="padding-top:3mm;">
< span t-esc="line['date_due']"/>
< /td>
< td>
< span t-esc="line['reference'] or line['number']"/>
< /td>
< td>
< span t-esc="line['amount_total']" t-esc-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
< /td>
< td>
< span t-esc="line['residual']" t-esc-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
< /td>
< td>
< span t-esc="line['paid_amount']" t-esc-options="{"widget": "monetary", "display_currency": "o.currency_id"}"/>
< /td>
< /tr>
< /t>`

Also checked in account-payment repo runbot same issue found.

Fix at OCA/account-payment#267

@Swapnesh-SerpentCS
Copy link

To be processed after Follow up on #33 (Since those files were not available on old PR #25 (comment))

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.

None yet

5 participants