Dolibarr: ODT generation not working when validating invoice

Created on 9 Oct 2020  路  3Comments  路  Source: Dolibarr/dolibarr

Bug

I designed an ODT template for invoices. When an invoice is validated, it generates automatically the ODT file.
Since upgrade to 12.0.3 from 11.0.1, some of the fields ({company_name}, {company_address}, {company_zip} and {company_town}) are not completed inside generated ODT __when validating invoice__.
But if I click "Generate" after that, these fields are filled. I haven't modify anything in invoice, neither in ODT template.

Environment

Expected and actual behavior

Following fields ({company_name}, {company_address}, {company_zip} and {company_town}) remains empty when invoice is validated. They should be filled with their value.
Workaround is to click on "Generate" after and new ODT file contains these values.
All other values are filled correctly.
These fields are inserted inside a square.

Steps to reproduce the behavior

  • Place odt template in doctemplates/invoice
  • Create an invoice and validate it
  • Open generated odt, some fields are empty
  • Click on "Generate"
  • Open new generated odt, fields are set

Attached files

Facture.odt.zip

Bug

Most helpful comment

Hi all,

for the time being the attached patch might help. It is for release 12.0.3 but will probably also work for past releases since 12.0.0

facture-14979.zip

All 3 comments

Hi all,

for the time being the attached patch might help. It is for release 12.0.3 but will probably also work for past releases since 12.0.0

facture-14979.zip

@code-chicken It works well! Many thanks!
Will it be part of next release 12.0.4?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TobiasSekan picture TobiasSekan  路  5Comments

borsti67 picture borsti67  路  5Comments

jsbrassard picture jsbrassard  路  4Comments

gnovaro picture gnovaro  路  5Comments

dolibarr95 picture dolibarr95  路  5Comments