diff --git a/account_move_update_analytic/README.rst b/account_move_update_analytic/README.rst new file mode 100644 index 0000000000..322c0fb21a --- /dev/null +++ b/account_move_update_analytic/README.rst @@ -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 `_. +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Le Filament +* Moduon + +Contributors +~~~~~~~~~~~~ + +* Rémi - Le Filament +* Eduardo de Miguel (`Moduon `__) +* Rafael Blasco (`Moduon `__) + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_move_update_analytic/__init__.py b/account_move_update_analytic/__init__.py new file mode 100644 index 0000000000..5cb1c49143 --- /dev/null +++ b/account_move_update_analytic/__init__.py @@ -0,0 +1 @@ +from . import wizards diff --git a/account_move_update_analytic/__manifest__.py b/account_move_update_analytic/__manifest__.py new file mode 100644 index 0000000000..645d8b7fae --- /dev/null +++ b/account_move_update_analytic/__manifest__.py @@ -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, +} diff --git a/account_move_update_analytic/i18n/account_move_update_analytic.pot b/account_move_update_analytic/i18n/account_move_update_analytic.pot new file mode 100644 index 0000000000..fbe53c52cc --- /dev/null +++ b/account_move_update_analytic/i18n/account_move_update_analytic.pot @@ -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 "" diff --git a/account_move_update_analytic/i18n/fr.po b/account_move_update_analytic/i18n/fr.po new file mode 100644 index 0000000000..853135e2e1 --- /dev/null +++ b/account_move_update_analytic/i18n/fr.po @@ -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" diff --git a/account_move_update_analytic/models/__init__.py b/account_move_update_analytic/models/__init__.py new file mode 100644 index 0000000000..8795b3bea6 --- /dev/null +++ b/account_move_update_analytic/models/__init__.py @@ -0,0 +1 @@ +from . import account_move_line diff --git a/account_move_update_analytic/readme/CONTRIBUTORS.rst b/account_move_update_analytic/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..96d3f4a683 --- /dev/null +++ b/account_move_update_analytic/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Rémi - Le Filament +* Eduardo de Miguel (`Moduon `__) +* Rafael Blasco (`Moduon `__) diff --git a/account_move_update_analytic/readme/DESCRIPTION.rst b/account_move_update_analytic/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..9ac66844a3 --- /dev/null +++ b/account_move_update_analytic/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows users to update the analytic distribution on journal items. diff --git a/account_move_update_analytic/readme/USAGE.rst b/account_move_update_analytic/readme/USAGE.rst new file mode 100644 index 0000000000..a832db16a8 --- /dev/null +++ b/account_move_update_analytic/readme/USAGE.rst @@ -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 diff --git a/account_move_update_analytic/security/ir.model.access.csv b/account_move_update_analytic/security/ir.model.access.csv new file mode 100644 index 0000000000..ac5ef15786 --- /dev/null +++ b/account_move_update_analytic/security/ir.model.access.csv @@ -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 diff --git a/account_move_update_analytic/static/description/icon.png b/account_move_update_analytic/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/account_move_update_analytic/static/description/icon.png differ diff --git a/account_move_update_analytic/static/description/index.html b/account_move_update_analytic/static/description/index.html new file mode 100644 index 0000000000..0f781b2079 --- /dev/null +++ b/account_move_update_analytic/static/description/index.html @@ -0,0 +1,437 @@ + + + + + + +Account move update analytic + + + +
+

Account move update analytic

+ + +

Beta License: AGPL-3 OCA/account-analytic Translate me on Weblate Try me on Runboat

+

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

+

Table of contents

+ +
+

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. +
  3. Current analytic account and tags are shown, you can select another one then click on Confirm
  4. +
  5. Analytic lines will be dropped from current analytic account and recreated on new analytic distribution.
  6. +
+
+https://raw.githubusercontent.com/OCA/account-analytic/16.0/account_move_update_analytic/static/description/update_from_invoice.png +
+
+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. +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.

+

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)
  • +
  • Rafael Blasco (Moduon)
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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 project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/account_move_update_analytic/static/description/update_from_invoice.png b/account_move_update_analytic/static/description/update_from_invoice.png new file mode 100644 index 0000000000..dd2b61e945 Binary files /dev/null and b/account_move_update_analytic/static/description/update_from_invoice.png differ diff --git a/account_move_update_analytic/static/description/update_from_journals.png b/account_move_update_analytic/static/description/update_from_journals.png new file mode 100644 index 0000000000..bb1a7f8d78 Binary files /dev/null and b/account_move_update_analytic/static/description/update_from_journals.png differ diff --git a/account_move_update_analytic/views/account_move_line_view.xml b/account_move_update_analytic/views/account_move_line_view.xml new file mode 100644 index 0000000000..5caaad1afa --- /dev/null +++ b/account_move_update_analytic/views/account_move_line_view.xml @@ -0,0 +1,23 @@ + + + + + + account.move.line.tree + account.move.line + + + +