Skip to content

Commit

Permalink
[FIX] product_abc_classification: Remove not working context attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
rousseldenis committed Nov 15, 2022
1 parent b56a5bf commit 340dffd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion product_abc_classification/views/product_product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<field name="abc_classification_product_level_ids" position="attributes">
<attribute
name="context"
>{'default_product_id': active_id, 'default_profile_id': abc_classification_profile_ids and abc_classification_profile_ids[0] and abc_classification_profile_ids[0][2] and abc_classification_profile_ids[0][2][0] or False}</attribute>
>{'default_product_id': active_id, 'default_profile_id': abc_classification_profile_ids and abc_classification_profile_ids[0] or False}</attribute>
<attribute name="attrs">{'read_only': False}</attribute>
<attribute name="domain">[('product_id', '=', active_id)]</attribute>
</field>
Expand Down
2 changes: 1 addition & 1 deletion product_abc_classification/views/product_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<field
name="abc_classification_product_level_ids"
widget="many2many_tags"
context="{'default_product_tmpl_id': active_id, 'default_profile_id': abc_classification_profile_ids and abc_classification_profile_ids[0] and abc_classification_profile_ids[0][2] and abc_classification_profile_ids[0][2][0] or False}"
context="{'default_product_tmpl_id': active_id, 'default_profile_id': abc_classification_profile_ids and abc_classification_profile_ids[0] or False}"
attrs="{'readonly': [('product_variant_count', '&gt;', 1)]}"
domain="[('product_tmpl_id', '=', active_id)]"
/>
Expand Down

0 comments on commit 340dffd

Please sign in to comment.