No puedo generar una factura, y me aparece este error ¿Alguien sabe como resolverlo?
Traceback (most recent call last): File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 219, in render_template yield from compiled_fn(self, values, log) File "", line 187, in template_881 File "C:\Users\Personal\Odoo ERP\server\odoo\addons\l10n_cl\models\res_partner.py", line 46, in _format_dotted_vat_cl vat_l = vat.split('-') AttributeError: 'bool' object has no attribute 'split' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch result = request.dispatch() File "C:\Users\Personal\Odoo ERP\server\odoo\http.py", line 686, in dispatch result = self._call_function(**self.params) File "C:\Users\Personal\Odoo ERP\server\odoo\http.py", line 358, in _call_function return checked_call(self.db, *args, **kwargs) File "C:\Users\Personal\Odoo ERP\server\odoo\service\model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "C:\Users\Personal\Odoo ERP\server\odoo\http.py", line 347, in checked_call result = self.endpoint(*a, **kw) File "C:\Users\Personal\Odoo ERP\server\odoo\http.py", line 915, in __call__ return self.method(*args, **kw) File "C:\Users\Personal\Odoo ERP\server\odoo\http.py", line 534, in response_wrap response = f(*args, **kw) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\web\controllers\main.py", line 1348, in call_kw return self._call_kw(model, method, args, kwargs) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\web\controllers\main.py", line 1340, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "C:\Users\Personal\Odoo ERP\server\odoo\api.py", line 464, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "C:\Users\Personal\Odoo ERP\server\odoo\api.py", line 451, in _call_kw_multi result = method(recs, *args, **kwargs) File "C:\Users\Personal\Odoo ERP\server\odoo\models.py", line 6472, in onchange record._onchange_eval(name, field_onchange[name], result) File "C:\Users\Personal\Odoo ERP\server\odoo\models.py", line 6205, in _onchange_eval method_res = method(self) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\account\wizard\account_invoice_send.py", line 96, in onchange_is_email self.composer_id._onchange_template_id_wrapper() File "C:\Users\Personal\Odoo ERP\server\odoo\addons\mail\wizard\mail_compose_message.py", line 170, in _onchange_template_id_wrapper values = self._onchange_template_id(self.template_id.id, self.composition_mode, self.model, self.res_id)['value'] File "C:\Users\Personal\Odoo ERP\server\odoo\addons\mail\wizard\mail_compose_message.py", line 549, in _onchange_template_id ['subject', 'body_html', 'email_from', 'email_to', 'partner_to', 'email_cc', 'reply_to', 'attachment_ids', 'mail_server_id'] File "C:\Users\Personal\Odoo ERP\server\odoo\addons\mail\wizard\mail_compose_message.py", line 658, in generate_email_for_composer template_values = self.env['mail.template'].with_context(tpl_partners_only=True).browse(template_id).generate_email(res_ids, fields) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\account_edi\models\mail_template.py", line 21, in generate_email res = super().generate_email(res_ids, fields) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\mail\models\mail_template.py", line 226, in generate_email result, format = report._render_qweb_pdf([res_id]) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\account\models\ir_actions_report.py", line 49, in _render_qweb_pdf return super()._render_qweb_pdf(res_ids=res_ids, data=data) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\ir_actions_report.py", line 839, in _render_qweb_pdf html = self_sudo.with_context(context)._render_qweb_html(res_ids, data=data)[0] File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\ir_actions_report.py", line 883, in _render_qweb_html return self._render_template(self.report_name, data), 'html' File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\ir_actions_report.py", line 620, in _render_template return view_obj._render_template(template, values).encode() File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\ir_ui_view.py", line 1975, in _render_template return self.browse(self.get_view_id(template))._render(values, engine) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\website\models\ir_ui_view.py", line 433, in _render return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\web_editor\models\ir_ui_view.py", line 29, in _render return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\ir_ui_view.py", line 1983, in _render return self.env[engine]._render(self.id, qcontext) File "C:\Users\Personal\Odoo ERP\server\odoo\tools\profiler.py", line 289, in _tracked_method_render return method_render(self, template, values, **options) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\ir_qweb.py", line 76, in _render result = super()._render(template, values=values, **compile_options) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 134, in _render result = ''.join(rendering) File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 221, in render_template raise e File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 219, in render_template yield from compiled_fn(self, values, log) File "", line 73, in template_657 File "", line 69, in t_call_content File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 221, in render_template raise e File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 219, in render_template yield from compiled_fn(self, values, log) File "", line 830, in template_884 File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 221, in render_template raise e File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 219, in render_template yield from compiled_fn(self, values, log) File "", line 50, in template_208 File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 221, in render_template raise e File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 219, in render_template yield from compiled_fn(self, values, log) File "", line 110, in template_207 File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 224, in render_template error=e, template=template, path=log.get('last_path_node'), code=code) Exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\Personal\Odoo ERP\server\odoo\http.py", line 642, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "C:\Users\Personal\Odoo ERP\server\odoo\http.py", line 300, in _handle_exception raise exception.with_traceback(None) from new_cause odoo.addons.base.models.qweb.QWebException: 'bool' object has no attribute 'split' Traceback (most recent call last): File "C:\Users\Personal\Odoo ERP\server\odoo\addons\base\models\qweb.py", line 219, in render_template yield from compiled_fn(self, values, log) File "", line 187, in template_881 File "C:\Users\Personal\Odoo ERP\server\odoo\addons\l10n_cl\models\res_partner.py", line 46, in _format_dotted_vat_cl vat_l = vat.split('-') AttributeError: 'bool' object has no attribute 'split' Error when render the template AttributeError: 'bool' object has no attribute 'split' Template: l10n_cl.custom_header Path: /t/div/div/div[2]/div/div/div[1]/div/h6/strong/span[2] Node: " rel="ugc">o.company_id.partner_id.vat)"/>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
857
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Nov 24
|
102 | ||
|
1
Sep 24
|
234 | ||
|
2
Aug 24
|
358 | ||
|
3
Jul 24
|
2393 | ||
|
1
Jul 24
|
365 |
After restoring the database you need to upgrade all module that installed in your database.
you can do that with adding '-u all' at the end of the parameter of your configuration in pycharm like this:
-c /home/mehdi/__ODOO__/odoo12/odoo12.conf -u all
after doing that run it once and after seeing modules loaded in pycharm log remove '-u all' and run it one more time .
Greeting,
Rachel Gomez