Skip to content

Conversation

@Anxo82
Copy link
Contributor

@Anxo82 Anxo82 commented Jul 22, 2025

Before the fix, barcode images were not rendered correctly in reports when using the gs1_128 format. This was caused by a mismatch between the parameter name used in the report template (type) and the one expected by the controller (barcode_type):
image

This commit updates the QWeb template to use barcode_type consistently and modifies the controller to accept the correct parameter.

@HaraldPanten @Jaimermaccione

[T-8006]

@OCA-git-bot
Copy link
Contributor

Hi @CarlosRoca13,
some modules you are maintaining are being modified, check this out!

Copy link

@ValentinVinagre ValentinVinagre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

@ValentinVinagre
Copy link

@pedrobaeza

@pedrobaeza pedrobaeza added this to the 17.0 milestone Jul 22, 2025
def report_barcode(
self,
type, # pylint: disable=redefined-builtin
barcode_type, # pylint: disable=redefined-builtin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the pylint disable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Thanks

@Anxo82 Anxo82 force-pushed the 17.0-fix-stock_picking_product_barcode_report branch from 521fa47 to c8aff03 Compare July 22, 2025 11:18
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-695-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 40ceac3 into OCA:17.0 Jul 22, 2025
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 300aa21. Thanks a lot for contributing to OCA. ❤️

@HaraldPanten HaraldPanten deleted the 17.0-fix-stock_picking_product_barcode_report branch July 22, 2025 11:45
@ValentinVinagre
Copy link

@Anxo82 Could you move it to the next versions if necessary? Thanks 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants