Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0] Migration account_analytic_sequence #383

Merged
merged 35 commits into from
Oct 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
225f6af
[ADD] Module which restore analytic account sequence
benwillig Jul 27, 2017
2de30bd
OCA Transbot updated translations from Transifex
oca-transbot Apr 6, 2018
db71e0a
[MIG]account_analytic_sequence to v11
AaronHForgeFlow Sep 4, 2018
69d3ab6
[UPD] Update account_analytic_sequence.pot
oca-travis Oct 11, 2018
c53e178
[MIG] account_analytic_sequence to v12.0
bjeficent Oct 29, 2018
93f9d48
[UPD] Update account_analytic_sequence.pot
oca-travis Jan 23, 2019
45212a0
Translated using Weblate (Spanish)
mvrodriguez Feb 1, 2019
1cda798
Added translation using Weblate (Galician)
mvrodriguez Feb 4, 2019
9e8bddb
Translated using Weblate (Galician)
mvrodriguez Feb 4, 2019
14b67fb
Translated using Weblate (Croatian)
badbole May 3, 2019
fdf3b5f
Translated using Weblate (Catalan)
May 27, 2019
6c8c6cd
[UPD] README.rst
OCA-git-bot Jul 29, 2019
2f29044
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
32441d7
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 30, 2019
3cb9ebb
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 30, 2019
799cb64
Translated using Weblate (German)
marylla Jan 29, 2020
7757806
Added translation using Weblate (Portuguese)
alvarorib Feb 26, 2020
a6b2b26
Translated using Weblate (Portuguese)
alvarorib Feb 26, 2020
411e77b
Translated using Weblate (Slovenian)
sysadminmatmoz Mar 21, 2020
c62370f
[IMP] account_analytic_sequence: assign on install
alexey-pelykh Mar 21, 2020
c51d92a
Added translation using Weblate (Italian)
sysadminmatmoz Mar 23, 2020
301f4a0
Translated using Weblate (Italian)
sysadminmatmoz Mar 23, 2020
4b549bf
[UPD] Update account_analytic_sequence.pot
oca-travis Mar 27, 2020
3818835
account_analytic_sequence 12.0.1.1.0
OCA-git-bot Mar 27, 2020
9dbf5fb
Update translation files
oca-transbot Mar 27, 2020
becc1d1
Translated using Weblate (Slovenian)
sysadminmatmoz Mar 30, 2020
07e5720
Translated using Weblate (German)
marylla May 6, 2020
bdd5b3d
Translated using Weblate (Spanish)
DarioLodeiros May 14, 2020
3acb6c1
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 23, 2020
29a031c
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 4, 2020
817908d
[UPD] README.rst
OCA-git-bot Nov 8, 2020
b81a63a
Translated using Weblate (Galician)
Feb 10, 2021
1e5d590
[IMP] account_analytic_sequence: black, isort, prettier
petrus-v May 28, 2021
3b37a80
[MIG] account_analytic_sequence: Migration to 14.0
petrus-v May 28, 2021
4be48bb
[FIX] account_analytic_sequence: add incompatibility with account_ana…
ps-tubtim Aug 3, 2021
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
20 changes: 19 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,30 @@ stages:

jobs:
include:
# Test separately: account_analytic_parent
- stage: test
env:
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT="1"
- TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1" INCLUDE="account_analytic_parent"
- stage: test
env:
- TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="account_analytic_parent"
# Test separately: account_analytic_sequence
- stage: test
env:
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT=1 INCLUDE="account_analytic_sequence"
- stage: test
env:
- TESTS=1 ODOO_REPO="OCA/OCB" INCLUDE="account_analytic_sequence"
# Test all other addons together
- stage: test
env:
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT=1
EXCLUDE="account_analytic_parent,account_analytic_sequence"
- stage: test
env:
- TESTS=1 ODOO_REPO="OCA/OCB"
EXCLUDE="account_analytic_parent,account_analytic_sequence"

env:
global:
- VERSION="14.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
Expand Down
76 changes: 76 additions & 0 deletions account_analytic_sequence/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
=========================
Account Analytic Sequence
=========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/14.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-12-0/account-analytic-12-0-account_analytic_sequence
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/87/14.0
:alt: Try me on Runbot

|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 <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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_sequence%0Aversion:%2014.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
~~~~~~~

* ACSONE SA/NV

Contributors
~~~~~~~~~~~~

* Benjamin Willig <[email protected]>
* `CorporateHub <https://corporatehub.eu/>`__

* Alexey Pelykh <[email protected]>

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 <https://github.com/OCA/account-analytic/tree/14.0/account_analytic_sequence>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions account_analytic_sequence/__init__.py
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions account_analytic_sequence/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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": "14.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",
}
13 changes: 13 additions & 0 deletions account_analytic_sequence/data/sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">

<record id="analytic_account_code_seq" model="ir.sequence">
<field name="name">Analytic account code</field>
<field name="code">account.analytic.account.code</field>
<field name="prefix">AA</field>
<field name="padding">3</field>
</record>

</odoo>
9 changes: 9 additions & 0 deletions account_analytic_sequence/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2020 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo import SUPERUSER_ID, api


def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
env["account.analytic.account"]._assign_default_codes()
44 changes: 44 additions & 0 deletions account_analytic_sequence/i18n/account_analytic_sequence.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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"
"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__display_name
msgid "Display Name"
msgstr ""

#. module: account_analytic_sequence
#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__id
msgid "ID"
msgstr ""

#. module: account_analytic_sequence
#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account____last_update
msgid "Last Modified on"
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 ""
50 changes: 50 additions & 0 deletions account_analytic_sequence/i18n/ca.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_analytic_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 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-27 13:19+0000\n"
"Last-Translator: Jaume Planas <[email protected]>\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 3.6.1\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__display_name
msgid "Display Name"
msgstr ""

#. module: account_analytic_sequence
#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__id
msgid "ID"
msgstr ""

#. module: account_analytic_sequence
#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account____last_update
msgid "Last Modified on"
msgstr ""

#. 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 ""
50 changes: 50 additions & 0 deletions account_analytic_sequence/i18n/cs_CZ.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_analytic_sequence
#
# Translators:
# Lukáš Spurný <[email protected]>, 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ý <[email protected]>, 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__display_name
msgid "Display Name"
msgstr ""

#. module: account_analytic_sequence
#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__id
msgid "ID"
msgstr ""

#. module: account_analytic_sequence
#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account____last_update
msgid "Last Modified on"
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 ""
51 changes: 51 additions & 0 deletions account_analytic_sequence/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_sequence
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>\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__display_name
msgid "Display Name"
msgstr ""

#. module: account_analytic_sequence
#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account__id
msgid "ID"
msgstr ""

#. module: account_analytic_sequence
#: model:ir.model.fields,field_description:account_analytic_sequence.field_account_analytic_account____last_update
msgid "Last Modified on"
msgstr ""

#. 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!"
Loading