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
126 changes: 126 additions & 0 deletions account_chart_update_code_digits/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
================================
Account Chart Update Code Digits
================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |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--financial--tools-lightgray.png?logo=github
:target: https://github.com/OCA/account-financial-tools/tree/18.0/account_chart_update_code_digits
:alt: OCA/account-financial-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-financial-tools-18-0/account-financial-tools-18-0-account_chart_update_code_digits
: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-financial-tools&target_branch=18.0
:alt: Try me on Runboat

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

This module extends the functionality of account_chart_update to make
possible modify the length of acccount codes when checking for updates
in the wizard.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

This module was developed to be able to modify the account length of the
account updater to eliminate detecting changes that are not actually
needed.

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

No configuration is needed. By default, the lenght of the account codes
is set from chart template. If the chart template hasn't length, then
“6” is set.

To change the account code length:

1. Go to *Accounting > Settings > Update Chart Template*
2. Modify the field ``Account Code Digits``
3. Click on **Next** with the field ``Update accounts`` selected
4. Review the accounts to be updated
5. Click on **Create/Update** to apply the new code length to the
accounts

Usage
=====

The wizard, accessible from *Accounting > Settings > Update Chart
Template*, now displays the ``Account Code Digits`` field.

The default is the length of each chart template but if modified, the
value is saved in a company field and becomes the default value.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/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-financial-tools/issues/new?body=module:%20account_chart_update_code_digits%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
-------

* Moduon

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

- Joel Estrada (`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.

.. |maintainer-u0f| image:: https://github.com/u0f.png?size=40px
:target: https://github.com/u0f
:alt: u0f
.. |maintainer-rafelbn| image:: https://github.com/rafelbn.png?size=40px
:target: https://github.com/rafelbn
:alt: rafelbn

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

|maintainer-u0f| |maintainer-rafelbn|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions account_chart_update_code_digits/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
22 changes: 22 additions & 0 deletions account_chart_update_code_digits/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2025 Moduon Team S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)

{
"name": "Account Chart Update Code Digits",
"summary": "Modify account chart digits lenght",
"version": "18.0.1.0.0",
"development_status": "Alpha",
"category": "Accounting",
"website": "https://github.com/OCA/account-financial-tools",
"author": "Moduon, Odoo Community Association (OCA)",
"maintainers": ["u0f", "rafelbn"],
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"account_chart_update",
],
"data": [
"wizards/wizard_chart_update_view.xml",
],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_chart_update_code_digits
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-13 10:11+0000\n"
"PO-Revision-Date: 2026-01-13 10:11+0000\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_chart_update_code_digits
#: model:ir.model.fields,field_description:account_chart_update_code_digits.field_res_company__account_code_digits
msgid "Account Code Digits"
msgstr ""

#. module: account_chart_update_code_digits
#: model:ir.model.fields,field_description:account_chart_update_code_digits.field_wizard_update_charts_accounts__code_digits
msgid "Code Digits"
msgstr ""

#. module: account_chart_update_code_digits
#: model:ir.model,name:account_chart_update_code_digits.model_res_company
msgid "Companies"
msgstr ""

#. module: account_chart_update_code_digits
#. odoo-python
#: code:addons/account_chart_update_code_digits/wizards/wizard_chart_update.py:0
msgid ""
"The following accounts could not be automatically updated to "
"%(digits)s digits because they are not created by the chart "
"of accounts template. Please update them manually: %(accounts)s"
msgstr ""

#. module: account_chart_update_code_digits
#: model:ir.model,name:account_chart_update_code_digits.model_wizard_update_charts_accounts
msgid "Wizard Update Charts Accounts"
msgstr ""
50 changes: 50 additions & 0 deletions account_chart_update_code_digits/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_chart_update_code_digits
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-13 10:11+0000\n"
"PO-Revision-Date: 2026-01-13 10:15+0100\n"
"Last-Translator: Joel Estrada Castellano <[email protected]>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.6\n"

#. module: account_chart_update_code_digits
#: model:ir.model.fields,field_description:account_chart_update_code_digits.field_res_company__account_code_digits
msgid "Account Code Digits"
msgstr "Dígitos del código de las cuentas contables"

#. module: account_chart_update_code_digits
#: model:ir.model.fields,field_description:account_chart_update_code_digits.field_wizard_update_charts_accounts__code_digits
msgid "Code Digits"
msgstr "Dígitos del código de las cuentas contables"

#. module: account_chart_update_code_digits
#: model:ir.model,name:account_chart_update_code_digits.model_res_company
msgid "Companies"
msgstr "Compañías"

#. module: account_chart_update_code_digits
#. odoo-python
#: code:addons/account_chart_update_code_digits/wizards/wizard_chart_update.py:0
msgid ""
"The following accounts could not be automatically updated to "
"%(digits)s digits because they are not created by the chart "
"of accounts template. Please update them manually: %(accounts)s"
msgstr ""
"Las siguientes cuentas no se han podido actualizar automáticamente a "
"%(digits)s dígitos porque no están creados en la plantilla "
"del plan contable. Por favor, actualícelas manualmente: %(accounts)s"

#. module: account_chart_update_code_digits
#: model:ir.model,name:account_chart_update_code_digits.model_wizard_update_charts_accounts
msgid "Wizard Update Charts Accounts"
msgstr "Wizard Actualización Plan de Cuentas"
1 change: 1 addition & 0 deletions account_chart_update_code_digits/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_company
10 changes: 10 additions & 0 deletions account_chart_update_code_digits/models/res_company.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2025 Moduon Team S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)

from odoo import fields, models


class ResCompany(models.Model):
_inherit = "res.company"

account_code_digits = fields.Integer()
3 changes: 3 additions & 0 deletions account_chart_update_code_digits/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
11 changes: 11 additions & 0 deletions account_chart_update_code_digits/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
No configuration is needed. By default, the lenght of the account codes is set from chart template.
If the chart template hasn't length, then “6” is set.

To change the account code length:

1. Go to _Accounting > Settings > Update Chart Template_
2. Modify the field `Account Code Digits`
3. Click on **Next** with the field `Update accounts` selected
4. Review the accounts to be updated
5. Click on **Create/Update** to apply the new code length to the accounts

2 changes: 2 additions & 0 deletions account_chart_update_code_digits/readme/CONTEXT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module was developed to be able to modify the account length of the account updater
to eliminate detecting changes that are not actually needed.
1 change: 1 addition & 0 deletions account_chart_update_code_digits/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Joel Estrada ([Moduon](https://www.moduon.team/))
2 changes: 2 additions & 0 deletions account_chart_update_code_digits/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module extends the functionality of account_chart_update to make possible modify
the length of acccount codes when checking for updates in the wizard.
5 changes: 5 additions & 0 deletions account_chart_update_code_digits/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The wizard, accessible from _Accounting > Settings > Update Chart Template_, now
displays the `Account Code Digits` field.

The default is the length of each chart template but if modified,
the value is saved in a company field and becomes the default value.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading