Skip to content
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
101 changes: 101 additions & 0 deletions account_analytic_distribution_widget_rebalance/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
==============================================
Account Analytic Distribution Widget Rebalance
==============================================

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

.. |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_distribution_widget_rebalance
: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_distribution_widget_rebalance
: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 adds a "Rebalance" button to the analytic distribution
widget, that let's adjust a line percentage to make the plan total
exactly 100%.

**Table of contents**

.. contents::
:local:

Usage
=====

In the analytic distribution popup, click the rebalance button to adjust
this line's percentage.

.. image:: https://raw.githubusercontent.com/OCA/account-analytic/18.0/account_analytic_distribution_widget_rebalance/static/img/step1.png

.. image:: https://raw.githubusercontent.com/OCA/account-analytic/18.0/account_analytic_distribution_widget_rebalance/static/img/step2.png

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

* Camptocamp

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

- Camptocamp <https://www.camptocamp.com>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

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-ivantodorovich| image:: https://github.com/ivantodorovich.png?size=40px
:target: https://github.com/ivantodorovich
:alt: ivantodorovich

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

|maintainer-ivantodorovich|

This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/18.0/account_analytic_distribution_widget_rebalance>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
22 changes: 22 additions & 0 deletions account_analytic_distribution_widget_rebalance/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2025 Camptocamp SA (https://www.camptocamp.com).
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Account Analytic Distribution Widget Rebalance",
"summary": "Add a button to rebalance the analytic distribution back to 100%",
"version": "18.0.1.0.0",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainers": ["ivantodorovich"],
"website": "https://github.com/OCA/account-analytic",
"license": "AGPL-3",
"category": "Analytic",
"depends": ["analytic"],
"assets": {
"web.assets_backend": [
"account_analytic_distribution_widget_rebalance/static/src/**/*",
],
"web.qunit_suite_tests": [
"account_analytic_distribution_widget_rebalance/static/tests/**/*.js",
],
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_widget_rebalance
#
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_distribution_widget_rebalance
#. odoo-javascript
#: code:addons/account_analytic_distribution_widget_rebalance/static/src/AnalyticDistribution.xml:0
#, python-format
msgid "Rebalance"
msgstr ""
24 changes: 24 additions & 0 deletions account_analytic_distribution_widget_rebalance/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_widget_rebalance
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-06-03 14:26+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.4\n"

#. module: account_analytic_distribution_widget_rebalance
#. odoo-javascript
#: code:addons/account_analytic_distribution_widget_rebalance/static/src/AnalyticDistribution.xml:0
#, python-format
msgid "Rebalance"
msgstr "Riequilibra"
3 changes: 3 additions & 0 deletions account_analytic_distribution_widget_rebalance/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Camptocamp \<<https://www.camptocamp.com>\>
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
- Bhavesh Heliconia
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module adds a "Rebalance" button to the analytic distribution widget,
that let's adjust a line percentage to make the plan total exactly 100%.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
In the analytic distribution popup, click the rebalance button to adjust this
line's percentage.

.. image:: ../static/img/step1.png

.. image:: ../static/img/step2.png

.. image:: ../static/img/step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading