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

[17.0][MIG] account_analytic_tag: Migration to 17.0 #654

Closed
wants to merge 16 commits into from
Closed
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
104 changes: 104 additions & 0 deletions account_analytic_tag/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
====================
Account Analytic Tag
====================

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

.. |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/17.0/account_analytic_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-17-0/account-analytic-17-0-account_analytic_tag
: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-analytic&target_branch=17.0
:alt: Try me on Runboat

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

This module restores the *account analytic tags* as a method for
categorizing analytic entries, selectable from the invoices, and
transferred to them on publishing.

**Table of contents**

.. contents::
:local:

Configuration
=============

To manage analytic account tags using this module, you need to:

1. Go to **Invocing > Configuration > Settings** and check the Analytic
Tags checkboxs in the Analytics section.

Usage
=====

Analytical tags.

This function allows you to manage Analytical tags for categorizing
analytic entries.

1. Go to **Invoicing > Configuration > Analytical accounting > Analytic
Tags**.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_tag%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
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Yadier Quesada
- Víctor Martínez

- `APSL a Nagarro company <https://apsl.tech>``:

- Miquel Alzanillas

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/17.0/account_analytic_tag>`_ 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_analytic_tag/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .hooks import pre_init_hook
23 changes: 23 additions & 0 deletions account_analytic_tag/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2023 Tecnativa - Yadier Quesada (https://www.tecnativa.com/)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Account Analytic Tag",
"version": "17.0.1.0.1",
"author": "Tecnativa, Odoo Community Association (OCA)",
"category": "Account",
"website": "https://github.com/OCA/account-analytic",
"depends": ["account", "analytic"],
"data": [
"security/analytic_security.xml",
"security/ir.model.access.csv",
"views/account_analytic_line_views.xml",
"views/account_analytic_tag_views.xml",
"views/account_move_views.xml",
"views/res_config_settings_views.xml",
],
"license": "AGPL-3",
"installable": True,
"application": False,
"pre_init_hook": "pre_init_hook",
}
13 changes: 13 additions & 0 deletions account_analytic_tag/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2024 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).


def pre_init_hook(env):
# In case you come from a previous version, reuse the security group, and avoid
# to crash due to 2 groups with the same name.
env.cr.execute(
"""UPDATE ir_model_data
SET module='account_analytic_tag'
WHERE module='analytic' and name='group_analytic_tags'
"""
)
142 changes: 142 additions & 0 deletions account_analytic_tag/i18n/account_analytic_tag.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_tag
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__active
msgid "Active"
msgstr ""

#. module: account_analytic_tag
#: model_terms:ir.actions.act_window,help:account_analytic_tag.account_analytic_tag_action
msgid "Add a new tag"
msgstr ""

#. module: account_analytic_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_tag.res_config_settings_view_form
msgid "Allows to tag analytic entries and to manage analytic distributions"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__account_analytic_id
msgid "Analytic Account filter"
msgstr ""

#. module: account_analytic_tag
#: model:res.groups,name:account_analytic_tag.group_analytic_tags
msgid "Analytic Accounting Tags"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model,name:account_analytic_tag.model_account_analytic_line
msgid "Analytic Line"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__name
msgid "Analytic Tag"
msgstr ""

#. module: account_analytic_tag
#: model:ir.actions.act_window,name:account_analytic_tag.account_analytic_tag_action
#: model:ir.model,name:account_analytic_tag.model_account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_move_line__analytic_tag_ids
#: model:ir.model.fields,field_description:account_analytic_tag.field_res_config_settings__group_analytic_tags
#: model:ir.ui.menu,name:account_analytic_tag.account_analytic_tag_menu
#: model_terms:ir.ui.view,arch_db:account_analytic_tag.account_analytic_tag_form_view
msgid "Analytic Tags"
msgstr ""

#. module: account_analytic_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_tag.account_analytic_tag_form_view
#: model_terms:ir.ui.view,arch_db:account_analytic_tag.account_analytic_tag_view_search
msgid "Archived"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__color
msgid "Color Index"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__company_id
msgid "Company"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model,name:account_analytic_tag.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__create_uid
msgid "Created by"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__create_date
msgid "Created on"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__display_name
msgid "Display Name"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__id
msgid "ID"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model,name:account_analytic_tag.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__write_uid
msgid "Last Updated by"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_tag__write_date
msgid "Last Updated on"
msgstr ""

#. module: account_analytic_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_tag.account_analytic_tag_view_search
msgid "Search Analytic Tags"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,help:account_analytic_tag.field_account_analytic_tag__active
msgid "Set active to false to hide the Analytic Tag without removing it."
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,field_description:account_analytic_tag.field_account_analytic_line__tag_ids
msgid "Tags"
msgstr ""

#. module: account_analytic_tag
#: model:ir.model.fields,help:account_analytic_tag.field_account_analytic_tag__account_analytic_id
msgid ""
"Without analytical account: This label will be set for all the analytical items generated.\n"
" With analytical account: This label will be set only to the analytical items that have the same analytical account."
msgstr ""
Loading
Loading