Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD][16.0] add account_ecotax_report #456

Open
wants to merge 3 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions account_ecotax_report/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
================
Ecotax Reporting
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:23479e79cea1c7653013329021c55bf27b1d6fa0d64734b13f53ca3209feaffa
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--fiscal--rule-lightgray.png?logo=github
:target: https://github.com/OCA/account-fiscal-rule/tree/16.0/account_ecotax_report
:alt: OCA/account-fiscal-rule
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-account_ecotax_report
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-fiscal-rule&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds reporting fields to the eco-tax line object and
the menu to acces tree & pivot view to facilitate the eco-tax declaration.

**Table of contents**

.. contents::
:local:

Usage
=====

1. configure ecotax (see module account_ecotax).

2. configure a product with ecotax classification and add it to new invoice.
This action automatically creates eco-tax lines

3. Go the menu Accounting/reporting/management/Ecotax line Analysis and Analyse ecotax.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-fiscal-rule/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-fiscal-rule/issues/new?body=module:%20account_ecotax_report%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Akretion

Contributors
~~~~~~~~~~~~

* Mourad EL HADJ MIMOUNE <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-mourad-ehm| image:: https://github.com/mourad-ehm.png?size=40px
:target: https://github.com/mourad-ehm
:alt: mourad-ehm

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-mourad-ehm|

This module is part of the `OCA/account-fiscal-rule <https://github.com/OCA/account-fiscal-rule/tree/16.0/account_ecotax_report>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_ecotax_report/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions account_ecotax_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# © 2014-2024 Akretion (http://www.akretion.com)
# @author Mourad EL HADJ MIMOUNE <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Ecotax Reporting",
"summary": "Ecotax Reporting add fields and view to anlysis ecotaxe ",
"version": "16.0.1.0.0",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-fiscal-rule",
"category": "Localization/Account Taxes",
"license": "AGPL-3",
"maintainers": ["mourad-ehm"],
"depends": [
"account_ecotax",
],
"data": [
"views/account_move_line_ecotax_view.xml",
],
"installable": True,
}
1 change: 1 addition & 0 deletions account_ecotax_report/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_move_line_ecotax
57 changes: 57 additions & 0 deletions account_ecotax_report/models/account_move_line_ecotax.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# © 2014-2024 Akretion (http://www.akretion.com)
# @author Mourad EL HADJ MIMOUNE <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class AccountMoveLineEcotax(models.Model):
_inherit = "account.move.line.ecotax"

company_id = fields.Many2one(
comodel_name="res.company",
related="account_move_line_id.company_id",
readonly=True,
store=True,
)
invoice_date = fields.Date(
related="account_move_line_id.date",
store=True,
)
invoice_state = fields.Selection(
related="account_move_line_id.parent_state", store=True
)
classif_categ_id = fields.Many2one(
"account.ecotax.category",
string="Classification category",
related="classification_id.categ_id",
readonly=True,
store=True,
)
sector_id = fields.Many2one(
"ecotax.sector",
string="Ecotax sector",
related="classification_id.sector_id",
readonly=True,
store=True,
)
collector_id = fields.Many2one(
"ecotax.collector",
string="Ecotax collector",
related="classification_id.collector_id",
readonly=True,
store=True,
)
ecotax_type = fields.Selection(
related="classification_id.ecotax_type", readonly=True, store=True
)
supplier_status = fields.Selection(
related="classification_id.supplier_status", readonly=True, store=True
)
currency_id = fields.Many2one(store=True)
product_id = fields.Many2one(store=True)
weight = fields.Float(
related="product_id.weight",
readonly=True,
store=True,
)
1 change: 1 addition & 0 deletions account_ecotax_report/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Mourad EL HADJ MIMOUNE <[email protected]>
2 changes: 2 additions & 0 deletions account_ecotax_report/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module adds reporting fields to the eco-tax line object and
the menu to acces tree & pivot view to facilitate the eco-tax declaration.
6 changes: 6 additions & 0 deletions account_ecotax_report/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1. configure ecotax (see module account_ecotax).

2. configure a product with ecotax classification and add it to new invoice.
This action automatically creates eco-tax lines

3. Go the menu Accounting/reporting/management/Ecotax line Analysis and Analyse ecotax.
Binary file added account_ecotax_report/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading