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

TA#66813 [16.0][MIG] account_fr_ca_labels #233

Draft
wants to merge 3 commits into
base: 16.0
Choose a base branch
from
Draft
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
9 changes: 0 additions & 9 deletions account_fr_ca_labels/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ Translations to update can be as specific as the following:

Compte utilisé sur les lignes de taxes des `avoirs`. Laissez vide pour utiliser le compte de dépenses.

Menu Items Adjustments
----------------------
The missing `s` is added to the menu item `Accounting / Vendors / Refund`.

.. image:: static/description/supplier_refund_menu_item_en.png

.. image:: static/description/supplier_refund_menu_item_fr.png


Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
3 changes: 1 addition & 2 deletions account_fr_ca_labels/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Copyright 2024 Numigi and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).


from . import models
from . import tools

Check notice on line 4 in account_fr_ca_labels/__init__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

account_fr_ca_labels/__init__.py#L4

'.tools' imported but unused (F401)
7 changes: 2 additions & 5 deletions account_fr_ca_labels/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@
"license": "LGPL-3",
"category": "Accounting",
"summary": "Sanitize the accounting terms for Canada French",
"depends": ["base", "lang_fr_activated"],
"depends": ["account", "lang_fr_activated"],
"data": [
"data/translate.term.fr_ca.csv",
"security/ir.model.access.csv",
# 'views/account_journal_views.xml',
"views/translate_term_fr_ca.xml",
"views/account_journal_views.xml",
],
"installable": True,
"auto-install": True,
Expand Down
32 changes: 0 additions & 32 deletions account_fr_ca_labels/data/translate.term.fr_ca.csv

This file was deleted.

3 changes: 1 addition & 2 deletions account_fr_ca_labels/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Copyright 2024 Numigi and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from . import translate_term_fr_ca
from . import translate
from . import ir_http
21 changes: 21 additions & 0 deletions account_fr_ca_labels/models/ir_http.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import logging

from odoo import models, api
from .tools.translation_utils import _update_translations

_logger = logging.getLogger(__name__)


class IrHttp(models.AbstractModel):
_inherit = "ir.http"

@api.model
def get_translations_for_webclient(self, modules, lang):
"""Override to update specific French-Canadian translation terms."""
translations, lang_params = super().get_translations_for_webclient(
modules, lang
)
if lang in ["fr_FR", "fr_CA"]:
_logger.info("Updating translations for language: %s", lang)
_update_translations(translations, python_translations=False)
return translations, lang_params
151 changes: 0 additions & 151 deletions account_fr_ca_labels/models/translate.py

This file was deleted.

12 changes: 0 additions & 12 deletions account_fr_ca_labels/models/translate_term_fr_ca.py

This file was deleted.

4 changes: 0 additions & 4 deletions account_fr_ca_labels/security/ir.model.access.csv

This file was deleted.

Binary file not shown.
Binary file not shown.
5 changes: 0 additions & 5 deletions account_fr_ca_labels/tests/__init__.py

This file was deleted.

100 changes: 0 additions & 100 deletions account_fr_ca_labels/tests/test_fr_translations.py

This file was deleted.

4 changes: 4 additions & 0 deletions account_fr_ca_labels/tools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2024 Numigi and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from . import translate

Check notice on line 4 in account_fr_ca_labels/tools/__init__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

account_fr_ca_labels/tools/__init__.py#L4

'.translate' imported but unused (F401)
Loading
Loading