From e80a7f3053cf88d96fe3e55415a395e85adcddc9 Mon Sep 17 00:00:00 2001 From: mario Date: Thu, 25 Apr 2024 14:40:55 +0100 Subject: [PATCH] [MIG] account_move_update_analytic: Migration to 17.0 --- account_move_update_analytic/README.rst | 12 +++++----- .../readme/CONTRIBUTORS.md | 4 ++-- account_move_update_analytic/readme/USAGE.md | 12 +++++----- .../static/description/index.html | 17 +++++++++----- .../views/account_move_line_view.xml | 2 +- .../views/account_move_view.xml | 22 ++----------------- 6 files changed, 30 insertions(+), 39 deletions(-) diff --git a/account_move_update_analytic/README.rst b/account_move_update_analytic/README.rst index eb704e451f..4ad8fd477d 100644 --- a/account_move_update_analytic/README.rst +++ b/account_move_update_analytic/README.rst @@ -39,13 +39,15 @@ items. Usage ===== -1. In a posted move and from customer invoices and vendor bills, go to +1. First of all, make sure that your respective user has the specific + Analytic Accounting role. +2. 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 +3. 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 +4. Analytic lines will be dropped from current analytic account and recreated on new analytic distribution. |image1| @@ -78,8 +80,8 @@ Contributors ------------ - Rémi - Le Filament -- Eduardo de Miguel (`Moduon `__) -- Rafael Blasco (`Moduon `__) +- Eduardo de Miguel ([Moduon](https://www.moduon.team/)) +- Rafael Blasco ([Moduon](https://www.moduon.team/)) Maintainers ----------- diff --git a/account_move_update_analytic/readme/CONTRIBUTORS.md b/account_move_update_analytic/readme/CONTRIBUTORS.md index 0f1de82e25..9bbad469ef 100644 --- a/account_move_update_analytic/readme/CONTRIBUTORS.md +++ b/account_move_update_analytic/readme/CONTRIBUTORS.md @@ -1,3 +1,3 @@ - Rémi - Le Filament \ -- Eduardo de Miguel ([Moduon](https://www.moduon.team/)) -- Rafael Blasco ([Moduon](https://www.moduon.team/)) +- Eduardo de Miguel (\[Moduon\]()) +- Rafael Blasco (\[Moduon\]()) diff --git a/account_move_update_analytic/readme/USAGE.md b/account_move_update_analytic/readme/USAGE.md index 76911e91c2..2731628bdf 100644 --- a/account_move_update_analytic/readme/USAGE.md +++ b/account_move_update_analytic/readme/USAGE.md @@ -1,12 +1,14 @@ -1. In a posted move and from customer invoices and vendor bills, go to +1. First of all, make sure that your respective user has the specific + Analytic Accounting role. +2. 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 +3. 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 +4. Analytic lines will be dropped from current analytic account and recreated on new analytic distribution. -![](../static/description/update_from_invoice.png) +![image1](../static/description/update_from_invoice.png) -![](../static/description/update_from_journals.png) +![image2](../static/description/update_from_journals.png) diff --git a/account_move_update_analytic/static/description/index.html b/account_move_update_analytic/static/description/index.html index da4db93e83..86d143db4d 100644 --- a/account_move_update_analytic/static/description/index.html +++ b/account_move_update_analytic/static/description/index.html @@ -9,10 +9,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +276,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +302,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -388,6 +389,8 @@

Account move update analytic

Usage

    +
  1. First of all, make sure that your respective user has the specific +Analytic Accounting role.
  2. 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 @@ -421,14 +424,16 @@

    Authors

    Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +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.

diff --git a/account_move_update_analytic/views/account_move_line_view.xml b/account_move_update_analytic/views/account_move_line_view.xml index 56ea7d5976..17f0ad81f1 100644 --- a/account_move_update_analytic/views/account_move_line_view.xml +++ b/account_move_update_analytic/views/account_move_line_view.xml @@ -13,7 +13,7 @@ name="account_move_update_analytic.action_view_account_move_update_analytic" type="action" groups="analytic.group_analytic_accounting" - attrs="{'invisible': [('parent_state', '!=', 'posted')]}" + invisible="parent_state != 'posted'" icon="fa-tags" title="Update analytic distribution" aria-label="Update analytic distribution" diff --git a/account_move_update_analytic/views/account_move_view.xml b/account_move_update_analytic/views/account_move_view.xml index ceb0cb67ab..8a0206cefc 100644 --- a/account_move_update_analytic/views/account_move_view.xml +++ b/account_move_update_analytic/views/account_move_view.xml @@ -13,30 +13,12 @@ expr="//field[@name='invoice_line_ids']/tree/field[@name='analytic_distribution']" position="after" > - +