Skip to content

Commit

Permalink
[REF] move rounding_method to sale_suggested_price
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Jul 13, 2022
1 parent f93cdb4 commit ea8948c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 33 deletions.
31 changes: 0 additions & 31 deletions beesdoo_product/views/beesdoo_product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,38 +154,7 @@
</field>
</record>

<record model="ir.ui.view" id="beesdoo_product_category_list">
<field name="name">beesdoo.product.category.list</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_list_view" />
<field name="arch" type="xml">
<field name="display_name" position="after">
<field name="profit_margin" />
<field name="should_round_suggested_price" />
</field>
</field>
</record>

<record model="ir.ui.view" id="beesdoo_product_category_form">
<field name="name">beesdoo.product.category.form</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_form_view" />
<field name="arch" type="xml">
<field name="parent_id" position="after">
<separator string="Suggested Price Configuration" />
<field name="profit_margin" />
<field name="should_round_suggested_price" />
<field
name="rounding_method"
attrs="{'invisible': [('should_round_suggested_price', '=', False)]}"
/>
<field
name="rounding_precision"
attrs="{'invisible': [('should_round_suggested_price', '=', False)]}"
/>
</field>
</field>
</record>

<record model="ir.ui.view" id="beesdoo_product_supplierinfo_tree_view">
<field name="name">beesdoo.product.supplierinfo.tree</field>
Expand Down
11 changes: 9 additions & 2 deletions sale_suggested_price/views/product_category_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@
<field name="inherit_id" ref="product.product_category_form_view" />
<field name="arch" type="xml">
<field name="parent_id" position="after">
<field name="profit_margin" />
<field name="should_round_suggested_price" />
<separator string="Suggested Price Configuration" />
<field
name="rounding_method"
attrs="{'invisible': [('should_round_suggested_price', '=', False)]}"
/>
<field
name="rounding_precision"
attrs="{'invisible': [('should_round_suggested_price', '=', False)]}"
/>
</field>
</field>
</record>
Expand Down

0 comments on commit ea8948c

Please sign in to comment.