Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion product_margin_classification/views/view_product_product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<tree
decoration-warning="margin_state == 'too_expensive'"
decoration-danger="margin_state == 'too_cheap'"
editable="bottom"
edit="true" create="false"
>
<field name="default_code" readonly="1" />
<field name="name" readonly="1" />
Expand Down Expand Up @@ -55,6 +55,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
widget="monetary"
options="{'currency_field': 'currency_id', 'field_digits': True}"
/>
<field name="margin_classification_id" optional="hide" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this view is new i think we can set optional="show"

<field name="product_variant_count" invisible="1" />
<field name="currency_id" invisible="1" />
</tree>
Expand Down
Loading