-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
[17.0][FIX] l10n_es_facturae: The city field in the partner is required for the FacturaE process. If the user does not provide it, document generation fails and module crashes. #4135
Conversation
Hi @etobella, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ocabot merge patch
What a great day to merge this nice PR. Let's do it! |
Ups, pre-commit is failing, @herminioelx can you check why? |
@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 17.0-ocabot-merge-pr-4135-by-pedrobaeza-bump-patch. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
Hi Enric, for me it's a nonsense error. The code is exactly the same as the used for the 16.0 branch. In fact I used the same commit. |
… the FacturaE process. If the user does not provide it, document generation fails and module crashes.
Los pre-commit pueden cambiar entre versiones, por eso se debe revisar los cherry-picks. Ya te lo he arreglado yo |
Herminio, pre-commit está ahí para asegurar una consistencia de formato entre todas las contribuciones. Instálalo en tu equipo y te olvidas (aunque claro, primero hay que empezar erradicando Windows, ya que ahí se multiplican las dificultades por 10). /ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 8b5423e. Thanks a lot for contributing to OCA. ❤️ |
Y si usas todavía Windows 7 como yo más :) |
The change involves modifying the validation process, just to check the existence of some value in the city field for Spanish partners.
Part of the error message in Odoo:
File "/opt/addons/reporting-engine/report_xml/reports/report_report_xml_abstract.py", line 53, in generate_report
result_bin = ir_report._render_template(ir_report.report_name, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/addons/base/models/ir_actions_report.py", line 686, in _render_template
return view_obj._render_template(template, values).encode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 2061, in _render_template
return self.env['ir.qweb']._render(template, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/tools/profiler.py", line 294, in _tracked_method_render
return method_render(self, template, values, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo17/odoo/addons/base/models/ir_qweb.py", line 605, in _render
result = ''.join(rendering)
^^^^^^^^^^^^^^^^^^
File "<1394>", line 34, in template_1394
File "<1394>", line 23, in template_1394_content
File "<1393>", line 3040, in template_1393
File "<1393>", line 3022, in template_1393_content
File "<1393>", line 319, in template_1393_t_call_0
File "<1391>", line 341, in template_1391
File "<1391>", line 142, in template_1391_content
File "<1390>", line 170, in template_1390
File "<1390>", line 116, in template_1390_content
File "<1392>", line 327, in template_1392
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
TypeError: 'bool' object is not subscriptable
Template: l10n_es_facturae.address_contact
Path: /t/AddressInSpain/Town
Node: