0d7fc98e0e1909546ede073f5c65b680f91f8fcd
Issue: In the spanish localisation (specifically with `l10n_es_edi_tbai` installed), when generating an invoice at POS checkout, we are met with a stacktrace about failed formatting of empty date. Steps to reproduce: - Install l10n_es_edi_tbai, l10n_es, l10n_es_edii_sii, l10n_es_reports, point_of_sale - Switch ES company - Setup POS, create a new session - Make an order and at checkout select "invoice" (this normally prints the invoice of the order) - We have the stacktrace. Cause: In the spanish localisation, when posting an invoice, it is sent to the Basque government for a signature and for it to be added to a "blockchain" for proof of uniqueness. The invoices normally are sent to the government when being posted. Sadly currently there is no `l10n_pos_es` or equivalent at the moment, so when generating invoices when checking out in POS, we are trying generate the necessary tbai_id and qr_code for the pdf, but since the `signature` and `registration_date` are missing, we are met with a stacktrace (failed formatting of the `registration_date`, because it is empty). Subsequent try to print the invoice from the backend also leads to the same stacktrace. Fix: Don't print the id and qr code when the invoice is not signed. Affected versions: 16 up to master Reference: opw-3414480 X-original-commit: 31aa4be2e832236fa85fdcdbe90cae9fe30e8f8b Part-of: odoo/odoo#132914
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%