Skip to content

Commit

Permalink
[FIX] web_widget_one2many_product_picker_sale_elaboration: Show field…
Browse files Browse the repository at this point in the history
… in all products
  • Loading branch information
Tardo committed Oct 26, 2021
1 parent 80c4d54 commit 247ae79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -109,8 +108,7 @@ odoo.define(
$("<FIELD/>", {
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
t-jquery="t[t-call='One2ManyProductPicker.ActionButton']"
t-operation="after"
>
<t
t-if="state.model === 'sale.order.line' &amp;&amp; state.data['elaboration_id']"
>
<t t-if="state.model === 'sale.order.line'">
<span
data-field="elaboration_id"
data-esc="elaboration_id.data.display_name"
Expand Down

0 comments on commit 247ae79

Please sign in to comment.