[FIX] developer/guidelines: odoo addons import order
The example for import order is a little confusing since it is wrong. closes odoo/documentation#3376 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
parent
ebce333c73
commit
f7b1f66b8c
@ -428,8 +428,8 @@ Inside these 3 groups, the imported lines are alphabetically sorted.
|
|||||||
from odoo import api, fields, models, _ # alphabetically ordered
|
from odoo import api, fields, models, _ # alphabetically ordered
|
||||||
from odoo.tools.safe_eval import safe_eval as eval
|
from odoo.tools.safe_eval import safe_eval as eval
|
||||||
# 3 : imports from odoo addons
|
# 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.web.controllers.main import login_redirect
|
||||||
|
from odoo.addons.website.models.website import slug
|
||||||
|
|
||||||
Idiomatics of Programming (Python)
|
Idiomatics of Programming (Python)
|
||||||
----------------------------------
|
----------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user