[FIX] Various P3-related import changes

* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
This commit is contained in:
xmo-odoo
2017-04-28 09:06:53 +02:00
committed by GitHub
parent c5579ef89e
commit b4429c2a91
633 changed files with 1509 additions and 1583 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
import wizard
import report
from . import wizard
from . import report
from odoo import api, SUPERUSER_ID
+13 -13
View File
@@ -1,15 +1,15 @@
# -*- coding: utf-8 -*-
import partner
import account
import account_payment
import account_invoice
import account_bank_statement
import account_move
import chart_template
import account_analytic_line
import account_journal_dashboard
import product
import company
import res_config
import web_planner
from . import partner
from . import account
from . import account_payment
from . import account_invoice
from . import account_bank_statement
from . import account_move
from . import chart_template
from . import account_analytic_line
from . import account_journal_dashboard
from . import product
from . import company
from . import res_config
from . import web_planner
+9 -9
View File
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account_financial_report
import account_invoice_report
import account_overdue_report
import account_general_ledger
import account_balance
import account_report_financial
import account_aged_partner_balance
import account_partner_ledger
import account_journal
from . import account_financial_report
from . import account_invoice_report
from . import account_overdue_report
from . import account_general_ledger
from . import account_balance
from . import account_report_financial
from . import account_aged_partner_balance
from . import account_partner_ledger
from . import account_journal
+18 -18
View File
@@ -2,21 +2,21 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account_reconcile
import account_unreconcile
import account_invoice_refund
import account_invoice_state
import account_validate_account_move
import pos_box
import account_move_reversal
import account_report_common
import account_report_common_account
import account_report_common_partner
import account_report_common_journal
import account_report_print_journal
import account_report_general_ledger
import account_report_partner_ledger
import account_report_trial_balance
import account_financial_report
import account_report_aged_partner_balance
import wizard_tax_adjustments
from . import account_reconcile
from . import account_unreconcile
from . import account_invoice_refund
from . import account_invoice_state
from . import account_validate_account_move
from . import pos_box
from . import account_move_reversal
from . import account_report_common
from . import account_report_common_account
from . import account_report_common_partner
from . import account_report_common_journal
from . import account_report_print_journal
from . import account_report_general_ledger
from . import account_report_partner_ledger
from . import account_report_trial_balance
from . import account_financial_report
from . import account_report_aged_partner_balance
from . import wizard_tax_adjustments
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import res_config
from . import res_config
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account_analytic_default
import sale_order_line
import product
from . import account_analytic_default
from . import sale_order_line
from . import product
+3 -3
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
import wizard
import report
from . import models
from . import wizard
from . import report
+4 -4
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account
import account_asset
import account_invoice
import product
from . import account
from . import account_asset
from . import account_invoice
from . import product
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account_asset_report
from . import account_asset_report
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import asset_depreciation_confirmation_wizard
import asset_modify
from . import asset_depreciation_confirmation_wizard
from . import asset_modify
@@ -1,6 +1,6 @@
# -*- encoding: utf-8 -*-
import account_bank_statement_import
import account_journal
from . import account_bank_statement_import
from . import account_journal
import wizard
from . import wizard
@@ -1 +1 @@
import journal_creation
from . import journal_creation
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account_budget
import account_analytic_account
from . import account_budget
from . import account_analytic_account
+3 -3
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import common
import test_theoreticalamount
import test_account_budget
from . import common
from . import test_theoreticalamount
from . import test_account_budget
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account_bank_statement
from . import account_bank_statement
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
import wizard
from . import models
from . import wizard
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account_journal
import account_payment
from . import account_journal
from . import account_payment
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import print_prenumbered_checks
from . import print_prenumbered_checks
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account_tax
from . import account_tax
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
import report
from . import models
from . import report
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import accounting_assert_test
from . import accounting_assert_test
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import report_account_test
from . import report_account_test
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account_voucher
from . import account_voucher
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import analytic_account
from . import analytic_account
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
import wizard
from . import models
from . import wizard
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import anonymization
from . import anonymization
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import anonymize_wizard
from . import anonymize_wizard
+1 -1
View File
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
import res_users
from . import res_users
+1 -1
View File
@@ -1,3 +1,3 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+4 -4
View File
@@ -1,6 +1,6 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import res_company
import res_company_ldap
import res_users
import auth_ldap_config_settings
from . import res_company
from . import res_company_ldap
from . import res_users
from . import auth_ldap_config_settings
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import controllers
import models
from . import controllers
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import main
from . import main
+4 -4
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import auth_oauth
import ir_config_parameter
import res_config
import res_users
from . import auth_oauth
from . import ir_config_parameter
from . import res_config
from . import res_users
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import controllers
import models
from . import controllers
from . import models
+1 -1
View File
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
import main
from . import main
+3 -3
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
import res_config
import res_users
import res_partner
from . import res_config
from . import res_users
from . import res_partner
+1 -1
View File
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
import models
from . import models
+2 -2
View File
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
import barcodes
import barcode_events_mixin
from . import barcodes
from . import barcode_events_mixin
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+3 -3
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import res_city
import res_country
import res_partner
from . import res_city
from . import res_country
from . import res_partner
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import base_address_extended
from . import base_address_extended
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import test_street_fields
from . import test_street_fields
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
import tests
from . import models
from .tests import test_models
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import base_automation
import ir_actions
from . import base_automation
from . import ir_actions
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import test_models
import test_base_automation
from . import test_models
from . import test_base_automation
+3 -3
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
import controller
import wizard
from . import models
from . import controller
from . import wizard
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import main
from . import main
+3 -3
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import ir_translation
import res_company
import res_config
from . import ir_translation
from . import res_company
from . import res_config
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import base_gengo_translations
from . import base_gengo_translations
+1 -1
View File
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import res_partner
from . import res_partner
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import res_partner_bank
from . import res_partner_bank
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import controllers
import models
from . import controllers
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import main
from . import main
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import base_import
import test_models
from . import base_import
from . import test_models
+1 -1
View File
@@ -37,7 +37,7 @@ except ImportError:
xlrd = xlsx = None
try:
import odf_ods_reader
from . import odf_ods_reader
except ImportError:
odf_ods_reader = None
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import test_base_import
from . import test_base_import
+2 -2
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import controllers
import models
from . import controllers
from . import models
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
import main
from . import main
+3 -3
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# flake8: noqa
import base_import_module
import ir_module
import ir_ui_view
from . import base_import_module
from . import ir_module
from . import ir_ui_view
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import res_config
from . import res_config
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from . import models
from . import tests
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+3 -3
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import res_company
import res_partner
import res_config
from . import res_company
from . import res_partner
from . import res_config
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import controllers
import models
from . import controllers
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import main
from . import main
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import board
from . import board
+2 -2
View File
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
import models
import controllers
from . import models
from . import controllers
+1 -1
View File
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
import main
from . import main
+4 -4
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
import bus
import bus_presence
import res_users
import res_partner
from . import bus
from . import bus_presence
from . import res_users
from . import res_partner
+3 -3
View File
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import controllers
import models
import wizard
from . import controllers
from . import models
from . import wizard
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import main
import bus
from . import main
from . import bus
+5 -5
View File
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import ir_attachment
import ir_http
import res_partner
import mail_message
import calendar
from . import ir_attachment
from . import ir_http
from . import res_partner
from . import mail_message
from . import calendar
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import mail_invite
from . import mail_invite
+4 -4
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import controllers
import models
import report
import wizard
from . import controllers
from . import models
from . import report
from . import wizard
+1 -1
View File
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*
import main
from . import main
+8 -8
View File
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import res_users
import calendar
import crm_lead
import crm_stage
import crm_team
import res_config
import res_partner
import web_planner
from . import res_users
from . import calendar
from . import crm_lead
from . import crm_stage
from . import crm_team
from . import res_config
from . import res_partner
from . import web_planner
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import crm_activity_report
import crm_opportunity_report
from . import crm_activity_report
from . import crm_opportunity_report
+5 -5
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import test_crm_lead
import test_new_lead_notification
import test_lead2opportunity
import test_crm_activity
import test_crm_ui
from . import test_crm_lead
from . import test_new_lead_notification
from . import test_lead2opportunity
from . import test_crm_activity
from . import test_crm_ui
+5 -5
View File
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import base_partner_merge
import crm_lead_lost
import crm_partner_binding
import crm_lead_to_opportunity
import crm_merge_opportunities
from . import base_partner_merge
from . import crm_lead_lost
from . import crm_partner_binding
from . import crm_lead_to_opportunity
from . import crm_merge_opportunities
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import mail_channel
from . import mail_channel
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import wizard
from . import wizard
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import crm_lead2projectissue_wizard
from . import crm_lead2projectissue_wizard
+2 -2
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
import wizard
from . import models
from . import wizard
+8 -8
View File
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import delivery_carrier
import delivery_price_rule
import product_template
import product_packaging
import sale_order
import partner
import stock_picking
import stock_move
from . import delivery_carrier
from . import delivery_price_rule
from . import product_template
from . import product_packaging
from . import sale_order
from . import partner
from . import stock_picking
from . import stock_move
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import choose_delivery_package
from . import choose_delivery_package
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import ir_attachment
from . import ir_attachment

Some files were not shown because too many files have changed in this diff Show More