From 247ae79a1d8cb1df91ad07bd1417c83cc85941fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20D=2E=20D=C3=ADaz?= Date: Fri, 14 May 2021 15:36:57 +0200 Subject: [PATCH] [FIX] web_widget_one2many_product_picker_sale_elaboration: Show field in all products --- .../__manifest__.py | 2 +- .../static/src/js/views/abstract_view.js | 6 ++---- .../static/src/xml/one2many_product_picker.xml | 4 +--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/web_widget_one2many_product_picker_sale_elaboration/__manifest__.py b/web_widget_one2many_product_picker_sale_elaboration/__manifest__.py index a4538471475a..2d4679c59b0d 100644 --- a/web_widget_one2many_product_picker_sale_elaboration/__manifest__.py +++ b/web_widget_one2many_product_picker_sale_elaboration/__manifest__.py @@ -8,7 +8,7 @@ "version": "13.0.1.0.0", "category": "Website", "author": "Tecnativa, " "Odoo Community Association (OCA)", - "website": "https://www.tecnativa.com", + "website": "https://github.com/OCA/web", "license": "AGPL-3", "depends": ["web_widget_one2many_product_picker", "sale_elaboration"], "data": ["templates/assets.xml"], diff --git a/web_widget_one2many_product_picker_sale_elaboration/static/src/js/views/abstract_view.js b/web_widget_one2many_product_picker_sale_elaboration/static/src/js/views/abstract_view.js index 38fbe4e04cb7..56e0a32e7e23 100644 --- a/web_widget_one2many_product_picker_sale_elaboration/static/src/js/views/abstract_view.js +++ b/web_widget_one2many_product_picker_sale_elaboration/static/src/js/views/abstract_view.js @@ -97,8 +97,7 @@ odoo.define( can_create: "true", can_write: "true", class: "mb-1", - attrs: - "{'readonly': [('state', 'in', ('done', 'cancel'))]}", + attrs: "{'readonly': [('state', 'in', ('done', 'cancel'))]}", modifiers: '{"readonly": [["state", "in", ["done", "cancel"]]]}', }).appendTo($arch); @@ -109,8 +108,7 @@ odoo.define( $("", { name: "elaboration_note", class: "mb-1", - attrs: - "{'readonly': [('state', 'in', ('done', 'cancel'))]}", + attrs: "{'readonly': [('state', 'in', ('done', 'cancel'))]}", modifiers: '{"readonly": [["state", "in", ["done", "cancel"]]]}', }).appendTo($arch); diff --git a/web_widget_one2many_product_picker_sale_elaboration/static/src/xml/one2many_product_picker.xml b/web_widget_one2many_product_picker_sale_elaboration/static/src/xml/one2many_product_picker.xml index 6d2ee0b9fa40..1b446e751d6d 100644 --- a/web_widget_one2many_product_picker_sale_elaboration/static/src/xml/one2many_product_picker.xml +++ b/web_widget_one2many_product_picker_sale_elaboration/static/src/xml/one2many_product_picker.xml @@ -5,9 +5,7 @@ t-jquery="t[t-call='One2ManyProductPicker.ActionButton']" t-operation="after" > - +