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

[18.0][MIG] account_analytic_spread_by_tag: Migration to 18.0 #712

Open
wants to merge 7 commits into
base: 18.0
Choose a base branch
from
Open
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
152 changes: 152 additions & 0 deletions account_analytic_spread_by_tag/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
==============================
Account Analytic Spread by Tag
==============================

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

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

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

This module distributes the amount of the accounting entry among all the
analytical accounts that share the same analytical tag. This module is
particularly useful for managing costs in projects, departments, or any
other analytic dimensions.

**Table of contents**

.. contents::
:local:

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

1. Configuration Before using the module, you need to configure the
Analytic Tags and Analytic Accounts.

Analytic Tags: Go to Accounting > Configuration > Analytic Accounting >
Analytic Tags. Create a new tag a enable 'Spread analytic amounts'.
Include or exclude analytic account while spreading setting filter in
the same view.

|Analytic tag spreading configuration|

Analytic Accounts: Go to Accounting > Configuration > Analytic
Accounting > Analytic Accounts. Create new accounts as needed and set
tags mapping field.

|Analytic account tag mapping|

.. |Analytic tag spreading configuration| image:: https://raw.githubusercontent.com/OCA/account-analytic/18.0/account_analytic_spread_by_tag/static/img/image.png
.. |Analytic account tag mapping| image:: https://raw.githubusercontent.com/OCA/account-analytic/18.0/account_analytic_spread_by_tag/static/img/image2.png

Usage
=====

Usage

1. When creating an invoice or a move line, you can assign Analytic Tags
to each invoice line. These tags will be used to distribute the cost
of the line across the associated Analytic Accounts.

Go to Accounting > Customers > Invoices. Click on "Create" to create a
new invoice.

In the invoice lines, select the product, enter the quantity and price,
and set an analytic tags preconfigurated for spreading.

2. Posting the invoice or move, the module will automatically create
analytic lines for each invoice line based on the associated analytic
tags.

Click on "Post" to post the invoice.

3. Go to Accounting > Analytic Accounting > Analytic Items to see the
created analytic lines.

|Created analytic lines|

Cancelling the invoice the module will automatically delete the
associated analytic lines.

4. Go to the invoice and click on "Action" > "Cancel". The associated
analytic lines will be deleted.

.. |Created analytic lines| image:: https://raw.githubusercontent.com/OCA/account-analytic/18.0/account_analytic_spread_by_tag/static/img/image3.png

Known issues / Roadmap
======================

- Add more formulas to spread amounts into analytic account spreading
filters configuration.

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_spread_by_tag%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
-------

* Miquel Alzanillas (APSL-Nagarro)

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

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

- Miquel Alzanillas
- Antoni Marroig <[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-miquelalzanillas| image:: https://github.com/miquelalzanillas.png?size=40px
:target: https://github.com/miquelalzanillas
:alt: miquelalzanillas

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

|maintainer-miquelalzanillas|

This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/18.0/account_analytic_spread_by_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_spread_by_tag/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions account_analytic_spread_by_tag/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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 Spread by Tag",
"version": "18.0.1.0.0",
"author": "Miquel Alzanillas (APSL-Nagarro), Odoo Community Association (OCA)",
"category": "Account",
"maintainers": ["miquelalzanillas"],
"website": "https://github.com/OCA/account-analytic",
"depends": ["account_analytic_tag"],
"data": [
"views/account_analytic_account_views.xml",
"views/account_analytic_tag_views.xml",
],
"license": "AGPL-3",
"installable": True,
"application": False,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_spread_by_tag
#
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_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_acount_spread_form_view
msgid "&gt;"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model:ir.model,name:account_analytic_spread_by_tag.model_account_analytic_account
msgid "Analytic Account"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields,field_description:account_analytic_spread_by_tag.field_account_analytic_tag__spread_filter_analytic_account_ids
msgid "Analytic Accounts"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model:ir.model,name:account_analytic_spread_by_tag.model_account_analytic_tag
msgid "Analytic Tags"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields.selection,name:account_analytic_spread_by_tag.selection__account_analytic_tag__spread_filter_operation__exclude
msgid "Exclude"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields,help:account_analytic_spread_by_tag.field_account_analytic_tag__to_spread
msgid ""
"If enabled, the move line amounts using this tag will be spread across"
" all the analytic accounts that use this same tag."
msgstr ""

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields.selection,name:account_analytic_spread_by_tag.selection__account_analytic_tag__spread_filter_operation__include
msgid "Include"
msgstr ""

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

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields,field_description:account_analytic_spread_by_tag.field_account_analytic_account__mapped_analytic_tag_ids
msgid "Mapped Analytic Tag"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields,field_description:account_analytic_spread_by_tag.field_account_analytic_tag__spread_filter_operation
msgid "Operation"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields,field_description:account_analytic_spread_by_tag.field_account_analytic_tag__to_spread
msgid "Spread analytic amounts"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_acount_spread_form_view
msgid "Spreading"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_tag_spread_form_view
msgid "Spreading Configuration"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_tag_spread_form_view
msgid "Spreading Filters"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_acount_spread_form_view
msgid "Tags Mapping"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_tag_spread_search_view
msgid "To Spread"
msgstr ""
103 changes: 103 additions & 0 deletions account_analytic_spread_by_tag/i18n/ca_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_spread_by_tag
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-14 06:31+0000\n"
"PO-Revision-Date: 2024-05-14 06:31+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_acount_spread_form_view
msgid "&gt;"
msgstr ""

#. module: account_analytic_spread_by_tag
#: model:ir.model,name:account_analytic_spread_by_tag.model_account_analytic_account
msgid "Analytic Account"
msgstr "Compte analític"

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields,field_description:account_analytic_spread_by_tag.field_account_analytic_tag__spread_filter_analytic_account_ids
msgid "Analytic Accounts"
msgstr "Comptes Analítiques"

#. module: account_analytic_spread_by_tag
#: model:ir.model,name:account_analytic_spread_by_tag.model_account_analytic_tag
msgid "Analytic Tags"
msgstr "Etiquetes analítiques"

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields.selection,name:account_analytic_spread_by_tag.selection__account_analytic_tag__spread_filter_operation__exclude
msgid "Exclude"
msgstr "Excloure"

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields,help:account_analytic_spread_by_tag.field_account_analytic_tag__to_spread
#, fuzzy
msgid ""
"If enabled, the move line amounts using this tag will be spread "
"across all the analytic accounts that use this same tag."
msgstr ""
"Si està activat, l'import del apunt comptable que empri aquesta etiqueta "
"serà proporcionalment distribuït entre totes les comptes analíques que també "
"emprin aquesta etiqueta a la seva configuració"

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields.selection,name:account_analytic_spread_by_tag.selection__account_analytic_tag__spread_filter_operation__include
msgid "Include"
msgstr "Incloure"

#. module: account_analytic_spread_by_tag
#: model:ir.model,name:account_analytic_spread_by_tag.model_account_move_line
msgid "Journal Item"
msgstr "Apunt comptable"

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields,field_description:account_analytic_spread_by_tag.field_account_analytic_account__mapped_analytic_tag_ids
msgid "Mapped Analytic Tag"
msgstr "Mapeig d'Etiquetes Analítiques"

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields,field_description:account_analytic_spread_by_tag.field_account_analytic_tag__spread_filter_operation
msgid "Operation"
msgstr "Operació"

#. module: account_analytic_spread_by_tag
#: model:ir.model.fields,field_description:account_analytic_spread_by_tag.field_account_analytic_tag__to_spread
msgid "Spread analytic amounts"
msgstr "Distribuir imports analítics"

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_acount_spread_form_view
msgid "Spreading"
msgstr "Distribució"

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_tag_spread_form_view
msgid "Spreading Configuration"
msgstr "Configuració de Distribució"

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_tag_spread_form_view
msgid "Spreading Filters"
msgstr "Filtres de Distribució"

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_acount_spread_form_view
msgid "Tags Mapping"
msgstr "Mapeig d'Etiquetes"

#. module: account_analytic_spread_by_tag
#: model_terms:ir.ui.view,arch_db:account_analytic_spread_by_tag.account_analytic_tag_spread_search_view
msgid "To Spread"
msgstr "Per distribuïr"
Loading
Loading