Compare commits

...

1 Commits

Author SHA1 Message Date
nle-odoo
de70fc8958 [FIX] developer/guidelines: odoo addons import order
The example for import order is a little confusing since it is wrong.
2023-01-20 11:43:18 +01:00

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