diff --git a/account_ecotax/__manifest__.py b/account_ecotax/__manifest__.py
index fba33c82e..024b99f71 100644
--- a/account_ecotax/__manifest__.py
+++ b/account_ecotax/__manifest__.py
@@ -25,6 +25,7 @@
"views/account_move_view.xml",
"views/product_template_view.xml",
"views/product_view.xml",
+ "report/invoice.xml",
],
"installable": True,
}
diff --git a/account_ecotax/models/account_move.py b/account_ecotax/models/account_move.py
index f30a74eb7..93d8a8dfd 100644
--- a/account_ecotax/models/account_move.py
+++ b/account_ecotax/models/account_move.py
@@ -59,3 +59,7 @@ def _get_tax_totals(
)
res["groups_by_subtotal"][_("Untaxed Amount")] = data
return res
+
+ def _get_formatted_ecotax_amount(self):
+ self.ensure_one()
+ return formatLang(self.env, self.amount_ecotax, currency_obj=self.currency_id)
diff --git a/account_ecotax/report/invoice.xml b/account_ecotax/report/invoice.xml
new file mode 100644
index 000000000..75acf2a21
--- /dev/null
+++ b/account_ecotax/report/invoice.xml
@@ -0,0 +1,49 @@
+
+
+
+
+
+ Eco Part Unit
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+ Including Eco Part |
+
+
+ |
+
+
+
+
diff --git a/account_ecotax/views/account_move_view.xml b/account_ecotax/views/account_move_view.xml
index 61d8f0aa2..e7733cfa4 100644
--- a/account_ecotax/views/account_move_view.xml
+++ b/account_ecotax/views/account_move_view.xml
@@ -138,10 +138,14 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/account_ecotax_tax/views/account_move_view.xml b/account_ecotax_tax/views/account_move_view.xml
new file mode 100644
index 000000000..32d86d661
--- /dev/null
+++ b/account_ecotax_tax/views/account_move_view.xml
@@ -0,0 +1,12 @@
+
+
+
+ account.move.line
+
+
+
+ 1
+
+
+
+