Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d86182b
[16.0] add account_ecotax_sale module
mourad-ehm May 27, 2024
0b6aa1f
FIX acc_ecotax_sale: subtotal_ecotax computing
bealdav Jun 19, 2024
049feb3
fixup
bealdav Jun 19, 2024
c4b1db2
Update sale_order_line.py
mourad-ehm Jun 20, 2024
91180b5
[16.0] delete migration script & fix typo & Ecotax lines is readonly
mourad-ehm Jun 20, 2024
2e70b1c
FIX test
mourad-ehm Nov 7, 2024
b5174f3
[REF] Split account_ecotax_sale into account_ecotax_sale and account_…
florian-dacosta Nov 19, 2024
a0ee23e
[IMP] Convert onchange to compute to create sale ecotax lines to impr…
florian-dacosta Jan 16, 2025
cf0b92d
[FIX] sale_order_line_ecotax created without classification when gene…
florian-dacosta Jan 19, 2025
d77c9a2
[IMP] account_ecotax_sale: pre-commit auto fixes
mourad-ehm Jan 24, 2025
11a090f
[MIG] account_ecotax_sale: Migration to 17.0
mourad-ehm Jan 24, 2025
f95fb5c
[FIX] Test
mourad-ehm Mar 6, 2025
19bf7a5
[FIX] oca review
mourad-ehm Mar 6, 2025
3a55019
[UPD] Update account_ecotax_sale.pot
Mar 14, 2025
1cfd4a0
[BOT] post-merge updates
OCA-git-bot Mar 14, 2025
b83180b
Added translation using Weblate (Italian)
mymage Mar 18, 2025
cf98129
[IMP] Add pre_init_hook to create compute fields on sale order and sa…
florian-dacosta Mar 19, 2025
c7de8e4
Translated using Weblate (Italian)
mymage Mar 19, 2025
8f37004
[BOT] post-merge updates
OCA-git-bot Mar 24, 2025
111d726
Translated using Weblate (French)
epanisset Apr 14, 2025
f821505
[IMP] account_ecotax_sale: pre-commit auto fixes
mourad-ehm Jun 17, 2025
abe924e
[MIG] account_ecotax_sale: Migration to 18.0
mourad-ehm Jun 17, 2025
63fc533
[IMP] account_ecotax_sale: ecotax amount with currency in sale form view
SilvioC2C Jul 14, 2025
efd730b
[IMP] account_avatax_sale_oca: more specific view extension
rvalyi Dec 2, 2025
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
2 changes: 1 addition & 1 deletion account_avatax_sale_oca/views/sale_order_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<field name="calculate_tax_on_save" invisible="1" />
<field name="tax_amount" invisible="1" />
</xpath>
<xpath expr="//field[@name='order_line']//list" position="inside">
<xpath expr="//field[@name='order_line']/list" position="inside">
<field name="tax_amt" groups="base.group_no_one" optional="hide" />
</xpath>
<xpath
Expand Down
90 changes: 90 additions & 0 deletions account_ecotax_sale/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
======================
sale Ecotax Management
======================

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

.. |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/18.0/account_ecotax_sale
: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-18-0/account-fiscal-rule-18-0-account_ecotax_sale
: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=18.0
:alt: Try me on Runboat

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

This module is an extension of the module *account_ecotax* for sale
orders. Please refer to the README of the module *account_ecotax* for
more info about ecotax management.

**Table of contents**

.. contents::
:local:

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_sale%0Aversion:%2018.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]>
- Florian DA COSTA <[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
.. |maintainer-florian-dacosta| image:: https://github.com/florian-dacosta.png?size=40px
:target: https://github.com/florian-dacosta
:alt: florian-dacosta

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

|maintainer-mourad-ehm| |maintainer-florian-dacosta|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions account_ecotax_sale/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .hook import pre_init_hook
20 changes: 20 additions & 0 deletions account_ecotax_sale/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# © FROM 2014 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": "sale Ecotax Management",
"summary": "Sale Ecotaxe",
"version": "18.0.1.0.0",
"maintainers": ["mourad-ehm", "florian-dacosta"],
"author": "Akretion,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-fiscal-rule",
"category": "Localization/Account Taxes",
"license": "AGPL-3",
"depends": ["account_ecotax", "sale"],
"data": [
"views/sale_view.xml",
"security/ir.model.access.csv",
],
"installable": True,
"pre_init_hook": "pre_init_hook",
}
28 changes: 28 additions & 0 deletions account_ecotax_sale/hook.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
def pre_init_hook(env):
env.cr.execute(
"""
ALTER TABLE sale_order ADD COLUMN IF NOT EXISTS amount_ecotax numeric
"""
)
env.cr.execute(
"""
UPDATE sale_order SET amount_ecotax = 0.0 WHERE amount_ecotax IS NULL
"""
)
env.cr.execute(
"""
ALTER TABLE sale_order_line ADD COLUMN IF NOT EXISTS subtotal_ecotax numeric
"""
)
env.cr.execute(
"""
ALTER TABLE sale_order_line ADD COLUMN IF NOT EXISTS ecotax_amount_unit numeric
"""
)
env.cr.execute(
"""
UPDATE sale_order_line
SET ecotax_amount_unit = 0.0, subtotal_ecotax = 0.0
WHERE ecotax_amount_unit IS NULL
"""
)
183 changes: 183 additions & 0 deletions account_ecotax_sale/i18n/account_ecotax_sale.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_ecotax_sale
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__amount_total
msgid "Amount Total"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__amount_unit
msgid "Amount Unit"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__classification_id
msgid "Classification"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__create_uid
msgid "Created by"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__create_date
msgid "Created on"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__currency_id
msgid "Currency"
msgstr ""

#. module: account_ecotax_sale
#: model_terms:ir.ui.view,arch_db:account_ecotax_sale.view_sale_line_ecotax_form
msgid "Delivered"
msgstr ""

#. module: account_ecotax_sale
#: model_terms:ir.ui.view,arch_db:account_ecotax_sale.view_sale_line_ecotax_form
msgid "Description"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__display_name
msgid "Display Name"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line__subtotal_ecotax
#: model_terms:ir.ui.view,arch_db:account_ecotax_sale.view_order_form
msgid "Ecotax"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,help:account_ecotax_sale.field_sale_order_line_ecotax__amount_unit
msgid "Ecotax Amount computed from Classification or Manual ecotax"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,help:account_ecotax_sale.field_sale_order_line_ecotax__amount_total
msgid ""
"Ecotax Amount total computed from Classification or forced ecotax amount"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line__ecotax_line_ids
msgid "Ecotax Lines"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line__ecotax_amount_unit
msgid "Ecotax Unit"
msgstr ""

#. module: account_ecotax_sale
#: model_terms:ir.ui.view,arch_db:account_ecotax_sale.view_sale_line_ecotax_form
msgid "Ecotax lines"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__force_amount_unit
msgid "Force Amount Unit"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,help:account_ecotax_sale.field_sale_order_line_ecotax__force_amount_unit
msgid ""
"Force ecotax.\n"
"Allow to add a subtitle to the default Ecotax Classification"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__id
msgid "ID"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order__amount_ecotax
msgid "Included Ecotaxe"
msgstr ""

#. module: account_ecotax_sale
#: model_terms:ir.ui.view,arch_db:account_ecotax_sale.view_sale_line_ecotax_form
msgid "Invoiced"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__write_uid
msgid "Last Updated by"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__write_date
msgid "Last Updated on"
msgstr ""

#. module: account_ecotax_sale
#: model_terms:ir.ui.view,arch_db:account_ecotax_sale.view_sale_line_ecotax_form
msgid "Note"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__product_id
msgid "Product"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__quantity
msgid "Quantity"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model.fields,field_description:account_ecotax_sale.field_sale_order_line_ecotax__sale_order_line_id
msgid "Sale Line"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model,name:account_ecotax_sale.model_sale_order_line_ecotax
msgid "Sale order line ecotax"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model,name:account_ecotax_sale.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: account_ecotax_sale
#: model:ir.model,name:account_ecotax_sale.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: account_ecotax_sale
#: model_terms:ir.ui.view,arch_db:account_ecotax_sale.view_sale_line_ecotax_form
msgid "Section Name (eg. Products, Services)"
msgstr ""

#. module: account_ecotax_sale
#: model_terms:ir.ui.view,arch_db:account_ecotax_sale.view_sale_line_ecotax_form
msgid "Subtotal"
msgstr ""

#. module: account_ecotax_sale
#: model_terms:ir.ui.view,arch_db:account_ecotax_sale.view_sale_line_ecotax_form
msgid "Total"
msgstr ""

#. module: account_ecotax_sale
#: model_terms:ir.ui.view,arch_db:account_ecotax_sale.view_sale_line_ecotax_form
msgid "Total Ecotax"
msgstr ""
39 changes: 39 additions & 0 deletions account_ecotax_sale/i18n/account_ecotaxe_sale.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_fr_ecotaxe_sale
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: l10n_fr_ecotaxe_sale
#: model:ir.model.fields,field_description:l10n_fr_ecotaxe_sale.field_sale_order__amount_ecotaxe
msgid "Included Ecotaxe"
msgstr ""

#. module: l10n_fr_ecotaxe_sale
#: model:ir.model,name:l10n_fr_ecotaxe_sale.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: l10n_fr_ecotaxe_sale
#: model:ir.model,name:l10n_fr_ecotaxe_sale.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: l10n_fr_ecotaxe_sale
#: model:ir.model.fields,field_description:l10n_fr_ecotaxe_sale.field_sale_order_line__subtotal_ecotaxe
msgid "Subtotal Ecotaxe"
msgstr ""

#. module: l10n_fr_ecotaxe_sale
#: model:ir.model.fields,field_description:l10n_fr_ecotaxe_sale.field_sale_order_line__unit_ecotaxe_amount
msgid "ecotaxe Unit."
msgstr ""
Loading