Skip to content

Commit

Permalink
[16.0][FIX] fix digits precision for ecotaxe amount on invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
mourad-ehm committed Feb 9, 2024
1 parent 7e7a6a4 commit 3ab46d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion l10n_fr_ecotaxe/data/decimal_precision.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<odoo noupdate="1">
<record id="ecotaxe_decimal" model="decimal.precision">
<field name="name">Ecotaxe</field>
<field name="digits">3</field>
<field name="digits">4</field>
</record>
</odoo>
7 changes: 5 additions & 2 deletions l10n_fr_ecotaxe/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
class AccountMove(models.Model):
_inherit = "account.move"

amount_ecotaxe = fields.Monetary(
string="Included Ecotaxe", store=True, compute="_compute_ecotaxe"
amount_ecotaxe = fields.Float(
digits="Ecotaxe",
string="Included Ecotaxe",
store=True,
compute="_compute_ecotaxe",
)

@api.depends("invoice_line_ids.subtotal_ecotaxe")
Expand Down

0 comments on commit 3ab46d6

Please sign in to comment.