[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:
parent
b37ca22bb0
commit
e9f6ddb7c3
@ -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)
|
||||
----------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user