From 7ce506c2b24c35a9d584faab2848694e0bedd2f1 Mon Sep 17 00:00:00 2001 From: nle-odoo Date: Fri, 20 Jan 2023 10:43:18 +0000 Subject: [PATCH] [FIX] developer/guidelines: odoo addons import order The example for import order is a little confusing since it is wrong. closes odoo/documentation#3380 X-original-commit: f7b1f66b8cba5a73b037ae32fb5d1be77dbfb7a4 Signed-off-by: Antoine Vandevenne (anv) Signed-off-by: Nicolas Lempereur (nle) --- content/contributing/development/coding_guidelines.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/contributing/development/coding_guidelines.rst b/content/contributing/development/coding_guidelines.rst index b0dede30c..9ef08c79a 100644 --- a/content/contributing/development/coding_guidelines.rst +++ b/content/contributing/development/coding_guidelines.rst @@ -428,8 +428,8 @@ Inside these 3 groups, the imported lines are alphabetically sorted. from odoo import api, fields, models, _ # alphabetically ordered from odoo.tools.safe_eval import safe_eval as eval # 3 : imports from odoo addons - from odoo.addons.website.models.website import slug from odoo.addons.web.controllers.main import login_redirect + from odoo.addons.website.models.website import slug Idiomatics of Programming (Python) ----------------------------------