[IMP] core: PEP420 native namespace

task-4035335

closes odoo/documentation#11914

Related: odoo/odoo#195664
Signed-off-by: Krzysztof Magusiak (krma) <krma@odoo.com>
This commit is contained in:
Krzysztof Magusiak (krma)
2025-01-25 09:21:03 +00:00
parent ee5a13730d
commit 4b9939c579
4 changed files with 16 additions and 12 deletions

View File

@@ -411,8 +411,8 @@ Imports
The imports are ordered as
#. External libraries (one per line sorted and split in python stdlib)
#. Imports of ``odoo``
#. Imports from Odoo modules (rarely, and only if necessary)
#. Imports of ``odoo`` submodules
#. Imports from Odoo addons (rarely, and only if necessary)
Inside these 3 groups, the imported lines are alphabetically sorted.
@@ -424,8 +424,8 @@ Inside these 3 groups, the imported lines are alphabetically sorted.
import time
from datetime import datetime
# 2 : imports of odoo
import odoo
from odoo import api, fields, models, _ # alphabetically ordered
from odoo import api, fields, models # alphabetically ordered
from odoo.fields import Domain
from odoo.tools.safe_eval import safe_eval as eval
# 3 : imports from odoo addons
from odoo.addons.web.controllers.main import login_redirect