-->
Welcome, Guest
Username: Password: Remember me
Check that your potential issue isn't already confirmed and fixed in the recent releases. A summary of all changes can be found in the Dolibarr Changelogs
  • Page:
  • 1
  • 2

TOPIC: [SOLVED] {line_options_xxx} in ODT files broke

[SOLVED] {line_options_xxx} in ODT files broke 5 months 3 weeks ago #36708

Thanks for your help.
But it's exactly the same template
But in an earlier reply som e one asked to add a new field and use that one in the template to exclude that it was my extra filed configuration.
That's why there is an extra field called test and I used that one in the template.

Other than that it is the exact same configuration and template
Last Edit: 5 months 2 weeks ago by bvgeleuken.
The administrator has disabled public write access.

{line_options_xxx} in ODT files broke since 9.x 5 months 2 weeks ago #36786

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Moderator
  • Posts: 321
  • Thank you received: 86
  • Karma: 14
HI,

I finally find some times to analyse your case.

After a review of the code there is a change between V8 and V9 :
V8 : https://github.com/Dolibarr/dolibarr/blob/8.0/htdocs/core/class/commondocgenerator.class.php#L550
V9 : https://github.com/Dolibarr/dolibarr/blob/9.0/htdocs/core/class/commondocgenerator.class.php#L580

So the Product Extra field of a line changed from {line_xxxx} to {line_product_xxxx}

Could you try ?
The administrator has disabled public write access.

{line_options_xxx} in ODT files broke since 9.x 5 months 2 weeks ago #36787

Hi,

First of all, thanks for helping me out.

I change {line_options_xxx} to {line_product_xxx} where xxx is the name of the attribute code --> no result
Then I change {line_options_xxx} to {line_product_options_xxx} where xxx is the name of the attribute code --> no result
The administrator has disabled public write access.

{line_options_xxx} in ODT files broke since 9.x 5 months 2 weeks ago #36788

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Moderator
  • Posts: 321
  • Thank you received: 86
  • Karma: 14
HI,

Just to be sure, you have done it on a V9 ?
The administrator has disabled public write access.

{line_options_xxx} in ODT files broke since 9.x 5 months 2 weeks ago #36797

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Moderator
  • Posts: 321
  • Thank you received: 86
  • Karma: 14
Hi,

I have just made the test and I confirm that if you have a product extrafiled defined and that you use the product on a proposal, on the ODT file the
{line_product_options_xxxx}
is working !

So up to V8 use
{line_options_xxxx}
Above V9 use
{line_product_options_xxxx}
Last Edit: 5 months 2 weeks ago by ksar.
The administrator has disabled public write access.

{line_options_xxx} in ODT files broke since 9.x 5 months 2 weeks ago #36800

I tried it in V9

Just to check. I use my template in the order not in proposal.

I will test it also on propsal but I need it on order.
Last Edit: 5 months 2 weeks ago by bvgeleuken.
The administrator has disabled public write access.

{line_options_xxx} in ODT files broke since 9.x 5 months 2 weeks ago #36801

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Moderator
  • Posts: 321
  • Thank you received: 86
  • Karma: 14
Hi,

The test I did :
- Create an Extrafield in product.
- fill it for one product
- Use the {line_product_options_xxxx} in Propal ODT
- Create a Propal with the product
- Generate a Propal ODT

It should be the same on Order
Last Edit: 5 months 2 weeks ago by ksar.
The administrator has disabled public write access.

{line_options_xxx} in ODT files broke since 9.x 5 months 2 weeks ago #36802

I will check.
Again, thanks man!

Could you attach your template.
I will change the attribute name in one of my extra fields.
See i that works
Last Edit: 5 months 2 weeks ago by bvgeleuken.
The administrator has disabled public write access.

{line_options_xxx} in ODT files broke since 9.x 5 months 2 weeks ago #36803

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Moderator
  • Posts: 321
  • Thank you received: 86
  • Karma: 14

File Attachment:

File Name: template_proposal.odt
File Size: 17 KB
The administrator has disabled public write access.

{line_options_xxx} in ODT files broke since 9.x 5 months 2 weeks ago #36804

Thanks.

I tested proposal and order with the default template.
I had to type the code cause copy/paste won't work (Libreoffice code?)

All extra fields are filled correctly.

So I have to redo my own template.

Thanks again!
Last Edit: 5 months 2 weeks ago by bvgeleuken.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.099 seconds