New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FW][FIX] stock: fix text product label reports with special characters #155853
[FW][FIX] stock: fix text product label reports with special characters #155853
Conversation
@robinengels @clesgow cherrypicking of pull request #152657 failed. stdout:
stderr:
Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?). In the former case, you may want to edit this PR message as well. More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
2631055
to
ae096ae
Compare
Current behavior: When printing products ZPL Labels, special characters are not printed correctly. e.g. quotes become ' Steps to reproduce: - Modify a product name with special characters - Print a product label - Select ZPL Labels As the report is only rendered as text, the special characters are not dangerous and can be printed as is. opw-3684870 X-original-commit: 4c2e92d
ae096ae
to
36900f5
Compare
<t t-if="env.user.has_group('stock.group_stock_lot_print_gs1')"> | ||
<t t-if="lot.product_id.valid_ean" t-set="final_barcode" t-value="'01' + '0' * (14 - len(lot.product_id.barcode)) + lot.product_id.barcode"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clesgow My fix has changed a bit because of this new part. I modified the test so that it should also cover this part.
@robinengels @clesgow Not to add some pressure, but this is wrecking havoc on the upgrades. |
Just FYI. We need to ensure that PRs adding models/fields to stable versions should be merged at the beginning of the week and the FW ports handled timely during the week when possible. This avoids failed upgrades when the fresh sources are pulled. |
@robodoo r+ |
@clesgow you may want to rebuild or fix this PR as it has failed CI. |
@odoo/rd-security |
@robodoo override=ci/security |
Current behavior: When printing products ZPL Labels, special characters are not printed correctly. e.g. quotes become ' Steps to reproduce: - Modify a product name with special characters - Print a product label - Select ZPL Labels As the report is only rendered as text, the special characters are not dangerous and can be printed as is. opw-3684870 closes #155853 X-original-commit: 4c2e92d Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
Current behavior:
When printing products ZPL Labels, special characters are not printed correctly. e.g. quotes become '
Steps to reproduce:
As the report is only rendered as text, the special characters are not dangerous and can be printed as is.
opw-3684870
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #152657