diff --git a/account_analytic_sequence/README.rst b/account_analytic_sequence/README.rst new file mode 100644 index 0000000000..9a1aa56881 --- /dev/null +++ b/account_analytic_sequence/README.rst @@ -0,0 +1,87 @@ +========================= +Account Analytic Sequence +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:31627e3dbb3166e5f121323f5a938445124b374e03510a7bb9ba7e057879e7ee + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/17.0/account_analytic_sequence + :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-17-0/account-analytic-17-0-account_analytic_sequence + :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=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module restores the sequence for an analytic account. + +**Table of contents** + +.. contents:: + :local: + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ACSONE SA/NV + +Contributors +------------ + +- Benjamin Willig +- `CorporateHub `__ + + - Alexey Pelykh + +- Pierre Verkest +- Manuel Regidor +- `Tecnativa `__: + + - Víctor Martínez + +- Daniel Herreros + +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_analytic_sequence/__init__.py b/account_analytic_sequence/__init__.py new file mode 100644 index 0000000000..e66fb1c2ee --- /dev/null +++ b/account_analytic_sequence/__init__.py @@ -0,0 +1,4 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import models +from .hooks import post_init_hook diff --git a/account_analytic_sequence/__manifest__.py b/account_analytic_sequence/__manifest__.py new file mode 100644 index 0000000000..959b71b409 --- /dev/null +++ b/account_analytic_sequence/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2017 ACSONE SA/NV +# Copyright 2020 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Account Analytic Sequence", + "summary": """Restore the analytic account sequence""", + "version": "17.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/account-analytic", + "depends": ["analytic"], + "data": ["data/sequence.xml"], + "post_init_hook": "post_init_hook", +} diff --git a/account_analytic_sequence/data/sequence.xml b/account_analytic_sequence/data/sequence.xml new file mode 100644 index 0000000000..a836c93643 --- /dev/null +++ b/account_analytic_sequence/data/sequence.xml @@ -0,0 +1,12 @@ + + + + + Analytic account code + account.analytic.account.code + AA + 3 + + + diff --git a/account_analytic_sequence/hooks.py b/account_analytic_sequence/hooks.py new file mode 100644 index 0000000000..712d133293 --- /dev/null +++ b/account_analytic_sequence/hooks.py @@ -0,0 +1,6 @@ +# Copyright 2020 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + + +def post_init_hook(env): + env["account.analytic.account"]._assign_default_codes() diff --git a/account_analytic_sequence/i18n/account_analytic_sequence.pot b/account_analytic_sequence/i18n/account_analytic_sequence.pot new file mode 100644 index 0000000000..183498efb7 --- /dev/null +++ b/account_analytic_sequence/i18n/account_analytic_sequence.pot @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/ca.po b/account_analytic_sequence/i18n/ca.po new file mode 100644 index 0000000000..854989b61a --- /dev/null +++ b/account_analytic_sequence/i18n/ca.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2022-01-12 14:39+0000\n" +"Last-Translator: pere-aquarian \n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"Language: ca\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 4.3.2\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Compte analític" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "Referència" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "La referència ha de ser única per companyia!" diff --git a/account_analytic_sequence/i18n/cs_CZ.po b/account_analytic_sequence/i18n/cs_CZ.po new file mode 100644 index 0000000000..125aa96987 --- /dev/null +++ b/account_analytic_sequence/i18n/cs_CZ.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# Lukáš Spurný , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2018-04-03 13:07+0000\n" +"Last-Translator: Lukáš Spurný , 2018\n" +"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/" +"teams/23907/cs_CZ/)\n" +"Language: cs_CZ\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analytický účet" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/de.po b/account_analytic_sequence/i18n/de.po new file mode 100644 index 0000000000..0386c196d1 --- /dev/null +++ b/account_analytic_sequence/i18n/de.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2020-05-06 14:19+0000\n" +"Last-Translator: Maria Sparenberg \n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\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 3.10\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Kostenstelle" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "Referenz" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" +"Die Referenz der Kostenstelle muss innerhalb des Unternehmens eindeutig sein!" diff --git a/account_analytic_sequence/i18n/el_GR.po b/account_analytic_sequence/i18n/el_GR.po new file mode 100644 index 0000000000..753f42e6f3 --- /dev/null +++ b/account_analytic_sequence/i18n/el_GR.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2018-04-03 13:07+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/" +"el_GR/)\n" +"Language: el_GR\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" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Αναλυτικός Λογαριασμός" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/es.po b/account_analytic_sequence/i18n/es.po new file mode 100644 index 0000000000..031a7da7c2 --- /dev/null +++ b/account_analytic_sequence/i18n/es.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2022-01-12 14:39+0000\n" +"Last-Translator: pere-aquarian \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\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 4.3.2\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Cuenta analítica" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "Referencia" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "La referencia debe ser única por Compañía!" diff --git a/account_analytic_sequence/i18n/es_EC.po b/account_analytic_sequence/i18n/es_EC.po new file mode 100644 index 0000000000..184d910f94 --- /dev/null +++ b/account_analytic_sequence/i18n/es_EC.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# Cristian Salamea , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2018-04-03 13:07+0000\n" +"Last-Translator: Cristian Salamea , 2018\n" +"Language-Team: Spanish (Ecuador) (https://www.transifex.com/oca/teams/23907/" +"es_EC/)\n" +"Language: es_EC\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" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Cuenta Analítica" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/es_MX.po b/account_analytic_sequence/i18n/es_MX.po new file mode 100644 index 0000000000..dda1892f0f --- /dev/null +++ b/account_analytic_sequence/i18n/es_MX.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2018-04-03 13:07+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\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" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Cuenta analítica" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/fi.po b/account_analytic_sequence/i18n/fi.po new file mode 100644 index 0000000000..5149d42758 --- /dev/null +++ b/account_analytic_sequence/i18n/fi.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2018-04-03 13:07+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\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" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analyyttinen tili" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/fr.po b/account_analytic_sequence/i18n/fr.po new file mode 100644 index 0000000000..441a273d70 --- /dev/null +++ b/account_analytic_sequence/i18n/fr.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2022-01-26 10:40+0000\n" +"Last-Translator: Yves Le Doeuff \n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\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 4.3.2\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Compte analytique" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "Référence" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "La référence doit être unique par société" diff --git a/account_analytic_sequence/i18n/gl.po b/account_analytic_sequence/i18n/gl.po new file mode 100644 index 0000000000..dc5cc460a6 --- /dev/null +++ b/account_analytic_sequence/i18n/gl.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-02-10 19:45+0000\n" +"Last-Translator: karl García Gestido \n" +"Language-Team: none\n" +"Language: gl\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 4.3.2\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Conta analítica" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "Referencia" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "A Referencia debe ser única por compañía!" diff --git a/account_analytic_sequence/i18n/gu_IN.po b/account_analytic_sequence/i18n/gu_IN.po new file mode 100644 index 0000000000..af35ee6ae7 --- /dev/null +++ b/account_analytic_sequence/i18n/gu_IN.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# Parth Goswami , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2018-04-03 13:07+0000\n" +"Last-Translator: Parth Goswami , 2018\n" +"Language-Team: Gujarati (India) (https://www.transifex.com/oca/teams/23907/" +"gu_IN/)\n" +"Language: gu_IN\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" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "વિશ્લેષણાત્મક ખાતું" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/hi_IN.po b/account_analytic_sequence/i18n/hi_IN.po new file mode 100644 index 0000000000..d36e9e5d77 --- /dev/null +++ b/account_analytic_sequence/i18n/hi_IN.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# Parth Goswami , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2018-04-03 13:07+0000\n" +"Last-Translator: Parth Goswami , 2018\n" +"Language-Team: Hindi (India) (https://www.transifex.com/oca/teams/23907/" +"hi_IN/)\n" +"Language: hi_IN\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" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "विश्लेषणात्मक खाता" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/hr.po b/account_analytic_sequence/i18n/hr.po new file mode 100644 index 0000000000..ffc57c0f6e --- /dev/null +++ b/account_analytic_sequence/i18n/hr.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2019-05-03 14:02+0000\n" +"Last-Translator: Bole \n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 3.5.1\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analitički konto" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "Referenca" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/hr_HR.po b/account_analytic_sequence/i18n/hr_HR.po new file mode 100644 index 0000000000..191855dffa --- /dev/null +++ b/account_analytic_sequence/i18n/hr_HR.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2018-04-03 13:07+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analitički konto" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/it.po b/account_analytic_sequence/i18n/it.po new file mode 100644 index 0000000000..bd8012a47c --- /dev/null +++ b/account_analytic_sequence/i18n/it.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-06-07 11:12+0000\n" +"Last-Translator: mymage \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 4.17\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Conto analitico" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "Riferimento" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "Il riferimento deve essere unico per l'azienda!" diff --git a/account_analytic_sequence/i18n/nl.po b/account_analytic_sequence/i18n/nl.po new file mode 100644 index 0000000000..0cbf384e95 --- /dev/null +++ b/account_analytic_sequence/i18n/nl.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# Cas Vissers , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2018-04-03 13:07+0000\n" +"Last-Translator: Cas Vissers , 2018\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\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" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Kostenplaats" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/pt.po b/account_analytic_sequence/i18n/pt.po new file mode 100644 index 0000000000..e235381f91 --- /dev/null +++ b/account_analytic_sequence/i18n/pt.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-02-26 21:13+0000\n" +"Last-Translator: alvarorib \n" +"Language-Team: none\n" +"Language: pt\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 3.10\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Conta Analítica" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "Referência" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/pt_BR.po b/account_analytic_sequence/i18n/pt_BR.po new file mode 100644 index 0000000000..d87f1d11e8 --- /dev/null +++ b/account_analytic_sequence/i18n/pt_BR.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2022-10-20 01:43+0000\n" +"Last-Translator: Douglas Custódio \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\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 4.14.1\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Conta analítica" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "Referência" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "A referência deve ser única por empresa!" diff --git a/account_analytic_sequence/i18n/sk_SK.po b/account_analytic_sequence/i18n/sk_SK.po new file mode 100644 index 0000000000..f9b601d1d5 --- /dev/null +++ b/account_analytic_sequence/i18n/sk_SK.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2018-04-03 13:07+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Slovak (Slovakia) (https://www.transifex.com/oca/teams/23907/" +"sk_SK/)\n" +"Language: sk_SK\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analytický účet" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/i18n/sl.po b/account_analytic_sequence/i18n/sl.po new file mode 100644 index 0000000000..c9ae52c04d --- /dev/null +++ b/account_analytic_sequence/i18n/sl.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2020-03-30 22:14+0000\n" +"Last-Translator: Matjaz Mozetic \n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3;\n" +"X-Generator: Weblate 3.10\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "Analitični konto" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "Sklic" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "Sklic mora biti za vsako družbo unikaten!" diff --git a/account_analytic_sequence/i18n/zh_CN.po b/account_analytic_sequence/i18n/zh_CN.po new file mode 100644 index 0000000000..a43e39888f --- /dev/null +++ b/account_analytic_sequence/i18n/zh_CN.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_analytic_sequence +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-03 13:07+0000\n" +"PO-Revision-Date: 2019-08-30 11:23+0000\n" +"Last-Translator: 黎伟杰 <674416404@qq.com>\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 3.8\n" + +#. module: account_analytic_sequence +#: model:ir.model,name:account_analytic_sequence.model_account_analytic_account +msgid "Analytic Account" +msgstr "分析帐户" + +#. module: account_analytic_sequence +#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__code +msgid "Reference" +msgstr "参考" + +#. module: account_analytic_sequence +#: model:ir.model.constraint,message:account_analytic_sequence.constraint_account_analytic_account_code_uniq +msgid "Reference must be unique per Company!" +msgstr "" diff --git a/account_analytic_sequence/models/__init__.py b/account_analytic_sequence/models/__init__.py new file mode 100644 index 0000000000..f769c8ec1f --- /dev/null +++ b/account_analytic_sequence/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import account_analytic_account diff --git a/account_analytic_sequence/models/account_analytic_account.py b/account_analytic_sequence/models/account_analytic_account.py new file mode 100644 index 0000000000..8d1c2492f9 --- /dev/null +++ b/account_analytic_sequence/models/account_analytic_account.py @@ -0,0 +1,38 @@ +# Copyright 2017 ACSONE SA/NV +# Copyright 2020 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class AccountAnalyticAccount(models.Model): + _inherit = "account.analytic.account" + + code = fields.Char( + default=lambda self: self._default_code(), + copy=False, + ) + + _sql_constraints = [ + ( + "code_uniq", + "UNIQUE(code, company_id)", + "Reference must be unique per Company!", + ), + ] + + @api.model_create_multi + def create(self, vals_list): + for vals in vals_list: + if "code" not in vals: + vals["code"] = self._default_code() + return super().create(vals_list) + + @api.model + def _default_code(self): + return self.env["ir.sequence"].next_by_code("account.analytic.account.code") + + @api.model + def _assign_default_codes(self): + for aaa in self.with_context(active_test=False).search([("code", "=", False)]): + aaa.code = self._default_code() diff --git a/account_analytic_sequence/pyproject.toml b/account_analytic_sequence/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/account_analytic_sequence/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_analytic_sequence/readme/CONTRIBUTORS.md b/account_analytic_sequence/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..a41e807d53 --- /dev/null +++ b/account_analytic_sequence/readme/CONTRIBUTORS.md @@ -0,0 +1,8 @@ +- Benjamin Willig \<\> +- [CorporateHub](https://corporatehub.eu/) + - Alexey Pelykh \<\> +- Pierre Verkest \<\> +- Manuel Regidor \<\> +- [Tecnativa](https://www.tecnativa.com): + - Víctor Martínez +- Daniel Herreros \<\> diff --git a/account_analytic_sequence/readme/DESCRIPTION.md b/account_analytic_sequence/readme/DESCRIPTION.md new file mode 100644 index 0000000000..b69018bfd2 --- /dev/null +++ b/account_analytic_sequence/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module restores the sequence for an analytic account. diff --git a/account_analytic_sequence/static/description/icon.png b/account_analytic_sequence/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/account_analytic_sequence/static/description/icon.png differ diff --git a/account_analytic_sequence/static/description/index.html b/account_analytic_sequence/static/description/index.html new file mode 100644 index 0000000000..44087ed722 --- /dev/null +++ b/account_analytic_sequence/static/description/index.html @@ -0,0 +1,431 @@ + + + + + +Account Analytic Sequence + + + +
+

Account Analytic Sequence

+ + +

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

+

This module restores the sequence for an analytic account.

+

Table of contents

+ +
+

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 to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

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_analytic_sequence/tests/__init__.py b/account_analytic_sequence/tests/__init__.py new file mode 100644 index 0000000000..f102b64ebb --- /dev/null +++ b/account_analytic_sequence/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import test_analytic_sequence diff --git a/account_analytic_sequence/tests/test_analytic_sequence.py b/account_analytic_sequence/tests/test_analytic_sequence.py new file mode 100644 index 0000000000..dfbfe278c5 --- /dev/null +++ b/account_analytic_sequence/tests/test_analytic_sequence.py @@ -0,0 +1,25 @@ +# Copyright 2017 ACSONE SA/NV +# Copyright 2020 Brainbean Apps (https://brainbeanapps.com) +# Copyright 2024 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.tests.common import TransactionCase + + +class TestAccountAnalyticSequence(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.analytic_account_obj = cls.env["account.analytic.account"] + cls.partner = cls.env["res.partner"].create({"name": "Test partner"}) + cls.plan = cls.env["account.analytic.plan"].create({"name": "Test plan"}) + cls.analytic = cls.analytic_account_obj.create( + {"name": "aa", "partner_id": cls.partner.id, "plan_id": cls.plan.id} + ) + + def test_account_analytic_account_code(self): + self.assertTrue(self.analytic.code, "Sequence not added") + analytic2 = self.analytic_account_obj.create( + {"name": "Test 2", "plan_id": self.plan.id, "code": "TEST"} + ) + self.assertEqual(analytic2.code, "TEST") diff --git a/pandoc-3.2-1-amd64.deb b/pandoc-3.2-1-amd64.deb new file mode 100644 index 0000000000..f926716212 Binary files /dev/null and b/pandoc-3.2-1-amd64.deb differ