Skip to content

Commit

Permalink
update pos_product_label to pass the pos settings on wizzard context
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilmanuel committed Dec 4, 2024
1 parent 121f94e commit 4fc4f02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pos_product_label/models/pos_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def print_product_labels(self, data):
"""
vals = self._prepare_product_label_layout_data(data)
wizard = self.env["product.label.layout"].create(vals)
wizard = wizard.with_context(pos_config_id=self.config_id)

Check warning on line 35 in pos_product_label/models/pos_session.py

View check run for this annotation

Codecov / codecov/patch

pos_product_label/models/pos_session.py#L35

Added line #L35 was not covered by tests
if data.get("pos_quantity") == "order":
wizard = wizard.with_context(
force_label_qty_by_product=data.get("order_quantity_by_product", {})
Expand Down

0 comments on commit 4fc4f02

Please sign in to comment.