You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] web_widget_product_label_section_and_note: Use a flag to change the icon based on product visibility.
Before this commit, when isProductVisible was disabled and the user changed the label, this caused isProductVisible to change its value.
After this commit, changing the label no longer modifies isProductVisible.
Copy file name to clipboardExpand all lines: web_widget_product_label_section_and_note/static/src/components/product_label_section_and_note_field/product_label_section_and_note_field.esm.js
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,7 @@ export class ProductLabelSectionAndNoteField extends Many2OneField {
154
154
this.labelVisibility=useState({value: false});
155
155
this.isProductVisible=useState({value: false});
156
156
this.switchToLabel=false;
157
+
this.changeProductVisibility=true;
157
158
this.columnIsProductAndLabel=useState({
158
159
value: this.props.record.columnIsProductAndLabel,
159
160
});
@@ -203,8 +204,10 @@ export class ProductLabelSectionAndNoteField extends Many2OneField {
0 commit comments