Skip to content
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

[FIX][15.0] base_report_to_printer: Fix access error on product label #385

Open
wants to merge 1 commit into
base: 15.0
Choose a base branch
from

Conversation

fkantelberg
Copy link
Member

When printing a product label using the button Print Label on the form view for product.product the record ID is used on the model defined on the report. The reports are usually defined on product.template [1] which causes that the product.product ID is used on product.template causes an access error in best case or the title of different products to be used.

active_model in data is set due to [2] of the wizard.

This seems to be the bug for all versions and this might also be the case for the issue #350

[1] https://github.com/OCA/OCB/blob/15.0/addons/product/report/product_reports.xml
[2] https://github.com/OCA/OCB/blob/15.0/addons/product/wizard/product_label_layout.py#L60

…label from product.product because IDs are used on the wrong model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant