[FIX] developer/guidelines: odoo addons import order

The example for import order is a little confusing since it is wrong.

closes odoo/documentation#3381

X-original-commit: f7b1f66b8c
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
nle-odoo 2023-01-20 10:43:18 +00:00 committed by GitHub
parent b37ca22bb0
commit e9f6ddb7c3

View File

@ -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)
----------------------------------