Skip to content

Commit

Permalink
[16.0][ADD] account_analytic_account_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchov committed Aug 17, 2023
1 parent dbcba14 commit 8364a46
Show file tree
Hide file tree
Showing 13 changed files with 634 additions and 0 deletions.
74 changes: 74 additions & 0 deletions account_analytic_account_tag/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
============================
Account Analytic Account Tag
============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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--analytic-lightgray.png?logo=github
:target: https://github.com/OCA/account-analytic/tree/16.0/account_analytic_account_tag
:alt: OCA/account-analytic
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-account_analytic_account_tag
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/account-analytic&target_branch=16.0
:alt: Try me on Runboat

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

The goal of this module is to restore the tag_ids (analytic tag) to the
account.analytic.account model that were present until v11.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-analytic/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_account_tag%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
~~~~~~~

* ACSONE SA/NV

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

* Hughes Damry <hughes.damry@acsone.eu>

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.

This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/16.0/account_analytic_account_tag>`_ 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_analytic_account_tag/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions account_analytic_account_tag/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2023 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Account Analytic Account Tag",
"summary": """Restore the tag_ids in account.analytic.account""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-analytic",
"depends": ["account_analytic_tag"],
"data": ["views/account_analytic_account_views.xml"],
"demo": [],
"installable": True,
}
26 changes: 26 additions & 0 deletions account_analytic_account_tag/i18n/account_analytic_account_tag.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_account_tag
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-17 08:02+0000\n"
"PO-Revision-Date: 2023-08-17 08:02+0000\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_analytic_account_tag
#: model:ir.model,name:account_analytic_account_tag.model_account_analytic_account
msgid "Analytic Account"
msgstr ""

#. module: account_analytic_account_tag
#: model:ir.model.fields,field_description:account_analytic_account_tag.field_account_analytic_account__tag_ids
msgid "Tags"
msgstr ""
26 changes: 26 additions & 0 deletions account_analytic_account_tag/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_account_tag
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-17 08:02+0000\n"
"PO-Revision-Date: 2023-08-17 08:02+0000\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_analytic_account_tag
#: model:ir.model,name:account_analytic_account_tag.model_account_analytic_account
msgid "Analytic Account"
msgstr "Compte analytique"

#. module: account_analytic_account_tag
#: model:ir.model.fields,field_description:account_analytic_account_tag.field_account_analytic_account__tag_ids
msgid "Tags"
msgstr "Éiquettes"
1 change: 1 addition & 0 deletions account_analytic_account_tag/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_analytic_account
17 changes: 17 additions & 0 deletions account_analytic_account_tag/models/account_analytic_account.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2023 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class AccountAnalyticAccount(models.Model):
_inherit = ["account.analytic.account"]

tag_ids = fields.Many2many(
"account.analytic.tag",
"account_analytic_account_tag_rel",
"account_id",
"tag_id",
string="Tags",
copy=True,
)
1 change: 1 addition & 0 deletions account_analytic_account_tag/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Hughes Damry <hughes.damry@acsone.eu>
2 changes: 2 additions & 0 deletions account_analytic_account_tag/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The goal of this module is to restore the tag_ids (analytic tag) to the
account.analytic.account model that were present until v11.
Loading

0 comments on commit 8364a46

Please sign in to comment.