Skip to content

Commit

Permalink
[16.0][FIX] fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mourad-ehm committed Dec 4, 2023
1 parent eb0a82c commit 7f13b7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions l10n_fr_ecotaxe_sale/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ def _onchange_product_ecotaxe_line(self):
self.ecotaxe_line_ids = [(5,)] # Remove all ecotaxe classification
ecotax_cls_vals = []
for ecotaxeline_prod in self.product_id.ecotaxe_line_product_ids:
classif_id = ecotaxeline_prod.ecotaxe_classification_id.id
forced_amount = ecotaxeline_prod.force_ecotaxe_amount
ecotax_cls_vals.append(
(
0,
0,
{
"ecotaxe_classification_id": ecotaxeline_prod.ecotaxe_classification_id.id,
"force_ecotaxe_unit": ecotaxeline_prod.force_ecotaxe_amount,
"ecotaxe_classification_id": classif_id,
"force_ecotaxe_unit": forced_amount,
},
)
)
Expand Down

0 comments on commit 7f13b7c

Please sign in to comment.