Search 1.9 billion lines of Odoo code on GitHub

account_move_name_sequence

Author: Akretion,Vauxoo,Odoo Community Association (OCA)
License: AGPL-3
Branch: 16-mig-account_cash_deposit
Repository: akretion/account-financial-tools
Dependencies: account
Languages: HTML (363, 31.3%), Python (673, 58.1%), XML (48, 4.1%), and reStructuredText (74, 6.4%)
Other branches: 14-account-menu-minor_improvement, 14-account_fiscal_position_vat_check-remove_field, 14-account_menu-mv_templates, 14-add-account_move_name_sequence, 14-asset-code-cleanup, 14-cash-deposit-coin-count-machine, 14-check_deposit_state_posted, 14-fix-account_cash_deposit-empty, 14-fp_vat_check, 14.0-chg-account-move-prefix-seq-use-move-date-simplify, 16-fix-account_cash_deposit-empty, 16-fix-view-account_fiscal_position_vat_check, 16-mig-account_check_deposit, 16-mig-account_netting, and 16-mig-account_partner_required
Other repositories: BDO-ES/account-financial-tools, Change2improve/account-financial-tools, Darknroses/account-financial-tools, Digital5-Odoo/account-financial-tools, ForgeFlow/account-financial-tools, Gabinete-Digital/account-financial-tools, Ingeos/account-financial-tools, Jarsa/account-financial-tools, LevelPrime/account-financial-tools, OCA/account-financial-tools, SeuMarco/account-financial-tools, Studio73/account-financial-tools, TRESCLOUD/account-financial-tools, Tecnativa/account-financial-tools, Vauxoo/account-financial-tools, acsone/account-financial-tools, agrista/odoo-account-financial-tools, aurestic/account-financial-tools, brain-tec/account-financial-tools, camptocamp/account-financial-tools, coopiteasy/account-financial-tools, ecosoft-odoo/account-financial-tools, elego/account-financial-tools, factorlibre/account-financial-tools, kmee/account-financial-tools, legalsylvain/account-financial-tools, luc-demeyer/account-financial-tools, nuobit/account-financial-tools, onesteinbv/account-financial-tools, praxigento/OCA-account-financial-tools, sygel-technology/account-financial-tools, tegin/account-financial-tools, unitek-solusi/OCA-account-financial-tools, and ursais/account-financial-tools

<h1 class="title">Account Move Number Sequence</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/16.0/account_move_name_sequence"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_move_name_sequence"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/92/16.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>In Odoo version 13.0 and previous versions, the number of journal entries was generated from a sequence configured on the journal.</p> <p>In Odoo version 14.0, the number of journal entries can be manually set by the user. Then, the number attributed for the next journal entries in the same journal is computed by a complex piece of code that guesses the format of the journal entry number from the number of the journal entry which was manually entered by the user. It has several drawbacks:</p> <ul class="simple"> <li>the available options for the sequence are limited,</li> <li>it is not possible to configure the sequence in advance before the deployment in production,</li> <li>as it is error-prone, they added a <em>Resequence</em> wizard to re-generate the journal entry numbers, which can be considered as illegal in many countries,</li> <li>the <a class="reference external" href="https://github.com/odoo/odoo/blob/14.0/addons/account/models/sequence_mixin.py">piece of code</a> that handles this is not easy to understand and quite difficult to debug.</li> </ul> <p>Using this module, you can configure what kind of documents the gap sequence may be relaxed And even if you must use no-gap in your company or country it will reduce the concurrency issues since the module is using an extra table (ir_sequence) instead of locking the last record</p> <p>For those like me who think that the implementation before Odoo v14.0 was much better, for the accountants who think it should not be possible to manually enter the sequence of a customer invoice, for the auditor who considers that resequencing journal entries is prohibited by law, this module may be a solution to get out of the nightmare.</p> <p>The field names used in this module to configure the sequence on the journal are exactly the same as in Odoo version 13.0 and previous versions. That way, if you migrate to Odoo version 14.0 and you install this module immediately after the migration, you should keep the previous behavior and the same sequences will continue to be used.</p> <p>The module removes access to the <em>Resequence</em> wizard on journal entries.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li> <li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id3">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id4">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <p>On the form view of an account journal, in the first tab, there is a many2one link to the sequence. When you create a new journal, you can keep this field empty and a new sequence will be automatically created when you save the journal.</p> <p>On sale and purchase journals, you have an additional option to have another sequence dedicated to refunds.</p> <p>Upon module installation, all existing journals will be updated with a journal entry sequence (and also a credit note sequence for sale and purchase journals). You should update the configuration of the sequences to fit your needs. You can uncheck the option <em>Dedicated Credit Note Sequence</em> on existing sale and purchase journals if you don't want it. For the journals which already have journal entries, you should update the sequence configuration to avoid a discontinuity in the numbering for the next journal entry.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues">GitHub Issues</a>. 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 <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_move_name_sequence%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id3">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id4">Authors</a></h3> <ul class="simple"> <li>Akretion</li> <li>Vauxoo</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id5">Contributors</a></h3> <ul class="simple"> <li><a class="reference external" href="https://www.akretion.com">Akretion</a>:<ul> <li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li> </ul> </li> <li><a class="reference external" href="https://www.vauxoo.com">Vauxoo</a>:<ul> <li>Moisés López &lt;<a class="reference external" href="mailto:moylop260&#64;vauxoo.com">moylop260&#64;vauxoo.com</a>&gt;</li> <li>Francisco Luna &lt;<a class="reference external" href="mailto:fluna&#64;vauxoo.com">fluna&#64;vauxoo.com</a>&gt;</li> </ul> </li> <li><a class="reference external" href="https://www.factorlibre.com">Factor Libre</a>:<ul> <li>Rodrigo Bonilla Martinez &lt;<a class="reference external" href="mailto:rodrigo.bonilla&#64;factorlibre.com">rodrigo.bonilla&#64;factorlibre.com</a>&gt;</li> </ul> </li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id6">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>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.</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p> <p><a class="reference external" href="https://github.com/alexis-via"><img alt="alexis-via" src="https://github.com/alexis-via.png?size=40px" /></a> <a class="reference external" href="https://github.com/moylop260"><img alt="moylop260" src="https://github.com/moylop260.png?size=40px" /></a> <a class="reference external" href="https://github.com/frahikLV"><img alt="frahikLV" src="https://github.com/frahikLV.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/16.0/account_move_name_sequence">OCA/account-financial-tools</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>