Skip to content

Commit

Permalink
[FIX] product : Decimal Accuracy for Value Price Extra
Browse files Browse the repository at this point in the history
Issue :
'Value Price Extra' cannot have the N-digit Decimal Accuracy configuration but 'Product Price' can.
Solve :
Added field_digits to views
opw-2674006

closes odoo#79277

X-original-commit: fb372fb
Signed-off-by: Victor Feyens (vfe) <[email protected]>
  • Loading branch information
fdamhaut committed Nov 2, 2021
1 parent 244df10 commit 2033037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/product/views/product_attribute_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<field name="display_type" optional="hide"/>
<field name="html_color" attrs="{'invisible': [('display_type', '!=', 'color')]}" widget="color"/>
<field name="ptav_active" optional="hide"/>
<field name="price_extra" widget="monetary"/>
<field name="price_extra" widget="monetary" options="{'field_digits': True}"/>
<field name="currency_id" invisible="1"/>
</tree>
</field>
Expand All @@ -114,7 +114,7 @@
<field name="name"/>
<field name="display_type" invisible="1"/>
<field name="html_color" attrs="{'invisible': [('display_type', '!=', 'color')]}"/>
<field name="price_extra" widget="monetary"/>
<field name="price_extra" widget="monetary" options="{'field_digits': True}"/>
<field name="currency_id" invisible="1"/>
<field name="exclude_for" widget="one2many" mode="tree">
<tree editable="bottom">
Expand Down

0 comments on commit 2033037

Please sign in to comment.