Skip to content

Commit

Permalink
[MIG] l10n_fr_ecotaxe: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yankinmax committed Jun 3, 2024
1 parent 928c3fa commit 6211445
Show file tree
Hide file tree
Showing 20 changed files with 153 additions and 408 deletions.
73 changes: 37 additions & 36 deletions l10n_fr_ecotaxe/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,48 +17,47 @@ France Custom Ecotaxe
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--france-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-france/tree/16.0/l10n_fr_ecotaxe
:target: https://github.com/OCA/l10n-france/tree/17.0/l10n_fr_ecotaxe
:alt: OCA/l10n-france
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_ecotaxe
:target: https://translation.odoo-community.org/projects/l10n-france-17-0/l10n-france-17-0-l10n_fr_ecotaxe
: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/l10n-france&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-france&target_branch=17.0
:alt: Try me on Runboat

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

This module applies to companies based in France mainland. It doesn't apply to
companies based in the DOM-TOMs (Guadeloupe, Martinique, Guyane, Réunion,
Mayotte).
This module applies to companies based in France mainland. It doesn't
apply to companies based in the DOM-TOMs (Guadeloupe, Martinique,
Guyane, Réunion, Mayotte).

It add Ecotaxe amount on invoice line.
furthermore, a total ecotaxe are added at the footer of each document.
It add Ecotaxe amount on invoice line. furthermore, a total ecotaxe are
added at the footer of each document.

To make easy ecotaxe management and to factor the data, ecotaxe are set on products via ECOTAXE classifications.
ECOTAXE classification can either a fixed or weight based ecotaxe.
To make easy ecotaxe management and to factor the data, ecotaxe are set
on products via ECOTAXE classifications. ECOTAXE classification can
either a fixed or weight based ecotaxe.

A product can have one or serveral ecotaxe classifications. For exemple wooden window blinds equipped with electric motor can
have ecotaxe for wood and ecotaxe for electric motor.
A product can have one or serveral ecotaxe classifications. For exemple
wooden window blinds equipped with electric motor can have ecotaxe for
wood and ecotaxe for electric motor.

This module version add the possibility to manage several ecotaxe classification by product.
A migration script is necessary to update from previous versions.
This module version add the possibility to manage several ecotaxe
classification by product. A migration script is necessary to update
from previous versions.

There is the main change to manage in migration script:

renamed field
model old field new field
account.move.line unit_ecotaxe_amount ecotaxe_amount_unit
product.template manual_fixed_ecotaxe force_ecotaxe_amount
renamed field model old field new field account.move.line
unit_ecotaxe_amount ecotaxe_amount_unit product.template
manual_fixed_ecotaxe force_ecotaxe_amount

changed fields
model old field new field
product.template ecotaxe_classification_id ecotaxe_classification_ids
changed fields model old field new field product.template
ecotaxe_classification_id ecotaxe_classification_ids

added fields
model new field
account.move.line ecotaxe_line_ids
product.template ecotaxe_line_product_ids
added fields model new field account.move.line ecotaxe_line_ids
product.template ecotaxe_line_product_ids

**Table of contents**

Expand All @@ -68,12 +67,14 @@ product.template ecotaxe_line_product_ids
Usage
=====

Add ecotaxe classification via the menu *Accounting > configuration > Taxes > Ecotaxe Classification*.
Ecotaxe classification is either a fixed ecotaxe or weight based ecotaxe.
ecotaxe classification Infos can be used for legal declarations.
For fixed ecotaxe, ecotaxe amount is used as default value. We can for ecotaxe amount on product.
Add ecotaxe classification via the menu *Accounting > configuration >
Taxes > Ecotaxe Classification*. Ecotaxe classification is either a
fixed ecotaxe or weight based ecotaxe. ecotaxe classification Infos can
be used for legal declarations. For fixed ecotaxe, ecotaxe amount is
used as default value. We can for ecotaxe amount on product.

For weight based ecotaxe, we should define one ecotaxe by coef applied for the weight (depending on product materials).
For weight based ecotaxe, we should define one ecotaxe by coef applied
for the weight (depending on product materials).

Assign one or more ecotaxe classification to a product.

Expand All @@ -85,25 +86,25 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-france/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/l10n-france/issues/new?body=module:%20l10n_fr_ecotaxe%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/l10n-france/issues/new?body=module:%20l10n_fr_ecotaxe%0Aversion:%2017.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]>
- Mourad EL HADJ MIMOUNE <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -115,6 +116,6 @@ 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.

This module is part of the `OCA/l10n-france <https://github.com/OCA/l10n-france/tree/16.0/l10n_fr_ecotaxe>`_ project on GitHub.
This module is part of the `OCA/l10n-france <https://github.com/OCA/l10n-france/tree/17.0/l10n_fr_ecotaxe>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion l10n_fr_ecotaxe/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "France Custom Ecotaxe",
"summary": "Use Ecotaxe in French localisation contexte",
"version": "16.0.2.0.0",
"version": "17.0.1.0.0",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-france",
"category": "Localization/Account Taxes",
Expand Down
35 changes: 0 additions & 35 deletions l10n_fr_ecotaxe/migrations/16.0.2.0.0/post-migration.py

This file was deleted.

216 changes: 0 additions & 216 deletions l10n_fr_ecotaxe/migrations/16.0.2.0.0/pre-migration.py

This file was deleted.

Loading

0 comments on commit 6211445

Please sign in to comment.