Skip to content

Commit

Permalink
Merge PR #1245 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by ivantodorovich
  • Loading branch information
OCA-git-bot committed Oct 14, 2024
2 parents 7550d7e + 95e5e7c commit bc0f424
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pos_product_label/static/src/PrintLabelPopup.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export default class PrintLabelPopup extends AbstractAwaitablePopup {
this.data.format = data.print_format.selection[0][0];
});
}

updateFormat(event) {
this.data.format = event.target.value;
}

async confirm() {
const order = this.env.pos.get_order();
const productIds = [
Expand Down
3 changes: 2 additions & 1 deletion pos_product_label/static/src/PrintLabelPopup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
t-model="data.format"
t-att-id="format"
t-att-value="format"
t-on-change="updateFormat"
/>
<label
t-att-for="format"
Expand All @@ -45,7 +46,7 @@
</div>
</section>
<section>
<div>
<div t-if="data.format == '2x7xprice'">
<label for="extraContent">Extra Content</label>
<textarea
rows="4"
Expand Down

0 comments on commit bc0f424

Please sign in to comment.