In Dolibarr 8.x the use of {line_options_xxx} in ODT files for proposals, orders and shipment works fine. After upgrading to 9.0.1 none of the ODT templates work anymore.
{line_options_xxx} isn’t filled out anymore
EDIT: Thanks to ksar:
Code changed since V9
So up to V8 use
{line_options_xxxx}
Above V9 use
{line_product_options_xxxx}
Try testing out by defining a new line options and inserting that field in your ODT. This would at least help in ruling out if the option is working altogether or if there is a bug
THis is completely normal that it doesn’t work.
You have created your extrafield on product.
And you try to display it as it was a line delivery extrafield
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
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
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 [code]
{line_product_options_xxxx}[/code