From 12fc43849e0290734b429c78a9d91a64aa01b3a1 Mon Sep 17 00:00:00 2001 From: BT-dherreros Date: Wed, 12 Jun 2024 12:18:32 +0200 Subject: [PATCH] [17.0][MIG] account_analytic_sequence: Migration to 17.0 --- account_analytic_sequence/README.rst | 2 ++ account_analytic_sequence/hooks.py | 5 +---- account_analytic_sequence/readme/CONTRIBUTORS.md | 1 + account_analytic_sequence/static/description/index.html | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/account_analytic_sequence/README.rst b/account_analytic_sequence/README.rst index 7072c99685..9a1aa56881 100644 --- a/account_analytic_sequence/README.rst +++ b/account_analytic_sequence/README.rst @@ -67,6 +67,8 @@ Contributors - Víctor Martínez +- Daniel Herreros + Maintainers ----------- diff --git a/account_analytic_sequence/hooks.py b/account_analytic_sequence/hooks.py index fdbf14fe5b..712d133293 100644 --- a/account_analytic_sequence/hooks.py +++ b/account_analytic_sequence/hooks.py @@ -1,9 +1,6 @@ # 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, {}) +def post_init_hook(env): env["account.analytic.account"]._assign_default_codes() diff --git a/account_analytic_sequence/readme/CONTRIBUTORS.md b/account_analytic_sequence/readme/CONTRIBUTORS.md index 16f571b3c8..a41e807d53 100644 --- a/account_analytic_sequence/readme/CONTRIBUTORS.md +++ b/account_analytic_sequence/readme/CONTRIBUTORS.md @@ -5,3 +5,4 @@ - Manuel Regidor \<\> - [Tecnativa](https://www.tecnativa.com): - Víctor Martínez +- Daniel Herreros \<\> diff --git a/account_analytic_sequence/static/description/index.html b/account_analytic_sequence/static/description/index.html index 8a1f1d7fe4..44087ed722 100644 --- a/account_analytic_sequence/static/description/index.html +++ b/account_analytic_sequence/static/description/index.html @@ -412,6 +412,7 @@

Contributors

  • Víctor Martínez
  • +
  • Daniel Herreros <daniel.herreros@braintec.com>