Skip to content

Commit

Permalink
Merge PR #559 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by rafaelbn
  • Loading branch information
OCA-git-bot committed Sep 20, 2023
2 parents 8799222 + 8d4a2db commit 887caf8
Show file tree
Hide file tree
Showing 21 changed files with 971 additions and 0 deletions.
87 changes: 87 additions & 0 deletions account_move_update_analytic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
============================
Account move update analytic
============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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_move_update_analytic
: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_move_update_analytic
: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|

This module allows users to update the analytic distribution on journal items.

**Table of contents**

.. contents::
:local:

Usage
=====

1. In a posted move and from customer invoices and vendor bills, go to the move line you want to update, and click on 'Update analytic' to open the wizard. (You also have the button directly on account move lines).
2. Current analytic account and tags are shown, you can select another one then click on Confirm
3. Analytic lines will be dropped from current analytic account and recreated on new analytic distribution.

.. figure:: https://raw.githubusercontent.com/OCA/account-analytic/16.0/account_move_update_analytic/static/description/update_from_invoice.png

.. figure:: https://raw.githubusercontent.com/OCA/account-analytic/16.0/account_move_update_analytic/static/description/update_from_journals.png

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_move_update_analytic%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
~~~~~~~

* Le Filament
* Moduon

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

* Rémi - Le Filament <remi-filament>
* Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)
* Rafael Blasco (`Moduon <https://www.moduon.team/>`__)

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_move_update_analytic>`_ 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_move_update_analytic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizards
20 changes: 20 additions & 0 deletions account_move_update_analytic/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2022 Le Filament
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Account move update analytic",
"version": "16.0.1.0.0",
"category": "Accounting & Finance",
"summary": "This module allows the user to update analytic on posted moves",
"author": "Le Filament, Moduon, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-analytic",
"license": "AGPL-3",
"depends": ["account"],
"data": [
"security/ir.model.access.csv",
"wizards/account_move_update_analytic_view.xml",
"views/account_move_view.xml",
"views/account_move_line_view.xml",
],
"installable": True,
}
128 changes: 128 additions & 0 deletions account_move_update_analytic/i18n/account_move_update_analytic.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_move_update_analytic
#
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: account_move_update_analytic
#: model:ir.model,name:account_move_update_analytic.model_account_move_update_analytic_wizard
msgid "Account Move Update Analytic Account Wizard"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_line__analytic_account_id
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_account_move_update_analytic_account
msgid "Analytic Account"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_line__analytic_tag_ids
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_account_move_update_analytic_account
msgid "Analytic Tags"
msgstr ""

#. module: account_move_update_analytic
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_account_move_update_analytic_account
msgid "Cancel"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__company_id
msgid "Company"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__create_uid
msgid "Created by"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__create_date
msgid "Created on"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__current_analytic_account_id
msgid "Current Analytic Account"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__current_analytic_tag_ids
msgid "Current Analytic Tags"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__display_name
msgid "Display Name"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__id
msgid "ID"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__line_id
msgid "Invoice line"
msgstr ""

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

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__write_uid
msgid "Last Updated by"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__write_date
msgid "Last Updated on"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__new_analytic_account_id
msgid "New Analytic Account"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__new_analytic_tag_ids
msgid "New Analytic Tags"
msgstr ""

#. module: account_move_update_analytic
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.account_move_form_view
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.account_move_line_tree_view
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_move_line_tree_grouped
msgid "Update Analytic"
msgstr ""

#. module: account_move_update_analytic
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_account_move_update_analytic_account
msgid "Update Analytic Accounts / Tags"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.actions.act_window,name:account_move_update_analytic.action_view_account_move_update_analytic
msgid "Update Analytic for selected Account Moves"
msgstr ""

#. module: account_move_update_analytic
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_account_move_update_analytic_account
msgid "Update analytic lines"
msgstr ""
131 changes: 131 additions & 0 deletions account_move_update_analytic/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_move_update_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-06 11:18+0000\n"
"PO-Revision-Date: 2022-12-06 11:18+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_move_update_analytic
#: model:ir.model,name:account_move_update_analytic.model_account_move_update_analytic_wizard
msgid "Account Move Update Analytic Account Wizard"
msgstr "Assistant Mise à jour analytique"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_line__analytic_account_id
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_account_move_update_analytic_account
msgid "Analytic Account"
msgstr "Compte analytique"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_line__analytic_tag_ids
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_account_move_update_analytic_account
msgid "Analytic Tags"
msgstr "Étiquettes analytiques"

#. module: account_move_update_analytic
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_account_move_update_analytic_account
msgid "Cancel"
msgstr "Annuler"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__company_id
msgid "Company"
msgstr "Société"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__create_uid
msgid "Created by"
msgstr "Créé par"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__create_date
msgid "Created on"
msgstr "Créé le"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__current_analytic_account_id
msgid "Current Analytic Account"
msgstr "Compte analytique actuel"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__current_analytic_tag_ids
msgid "Current Analytic Tags"
msgstr "Étiquettes analytiques actuelles"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__display_name
msgid "Display Name"
msgstr "Nom affiché"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__id
msgid "ID"
msgstr ""

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__line_id
msgid "Invoice line"
msgstr "Ligne de facture"

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

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard____last_update
msgid "Last Modified on"
msgstr "Dernière modification le"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__write_uid
msgid "Last Updated by"
msgstr "Dernière mise à jour par"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__write_date
msgid "Last Updated on"
msgstr "Dernière mise à jour le"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__new_analytic_account_id
msgid "New Analytic Account"
msgstr "Nouveau compte analytique"

#. module: account_move_update_analytic
#: model:ir.model.fields,field_description:account_move_update_analytic.field_account_move_update_analytic_wizard__new_analytic_tag_ids
msgid "New Analytic Tags"
msgstr "Nouvelles étiquettes analytiques"

#. module: account_move_update_analytic
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.account_move_form_view
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.account_move_line_tree_view
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_move_line_tree_grouped
msgid "Update Analytic"
msgstr "Mettre à jour Analytique"

#. module: account_move_update_analytic
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_account_move_update_analytic_account
msgid "Update Analytic Accounts / Tags"
msgstr "Mettre à jour les comptes/étiquettes analytiques"

#. module: account_move_update_analytic
#: model:ir.actions.act_window,name:account_move_update_analytic.action_view_account_move_update_analytic
msgid "Update Analytic for selected Account Moves"
msgstr "Mettre à jour analytique pour les pièces sélectionnées"

#. module: account_move_update_analytic
#: model_terms:ir.ui.view,arch_db:account_move_update_analytic.view_account_move_update_analytic_account
msgid "Update analytic lines"
msgstr "Mettre à jour les lignes analytiques"
1 change: 1 addition & 0 deletions account_move_update_analytic/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_move_line
3 changes: 3 additions & 0 deletions account_move_update_analytic/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Rémi - Le Filament <remi-filament>
* Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)
* Rafael Blasco (`Moduon <https://www.moduon.team/>`__)
1 change: 1 addition & 0 deletions account_move_update_analytic/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allows users to update the analytic distribution on journal items.
7 changes: 7 additions & 0 deletions account_move_update_analytic/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
1. In a posted move and from customer invoices and vendor bills, go to the move line you want to update, and click on 'Update analytic' to open the wizard. (You also have the button directly on account move lines).
2. Current analytic account and tags are shown, you can select another one then click on Confirm
3. Analytic lines will be dropped from current analytic account and recreated on new analytic distribution.

.. figure:: ../static/description/update_from_invoice.png

.. figure:: ../static/description/update_from_journals.png
2 changes: 2 additions & 0 deletions account_move_update_analytic/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_account_move_update_analytic_wizard,access_account_move_update_analytic_wizard,model_account_move_update_analytic_wizard,analytic.group_analytic_accounting,1,1,1,1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 887caf8

Please sign in to comment.