From b4429c2a91889bf60b56e0c7909c844d357363f7 Mon Sep 17 00:00:00 2001 From: xmo-odoo Date: Fri, 28 Apr 2017 09:06:53 +0200 Subject: [PATCH] [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 --- addons/account/__init__.py | 6 +- addons/account/models/__init__.py | 26 +-- addons/account/report/__init__.py | 18 +-- addons/account/wizard/__init__.py | 36 ++--- addons/account_accountant/__init__.py | 2 +- addons/account_accountant/models/__init__.py | 2 +- addons/account_analytic_default/__init__.py | 2 +- .../models/__init__.py | 6 +- addons/account_asset/__init__.py | 6 +- addons/account_asset/models/__init__.py | 8 +- addons/account_asset/report/__init__.py | 2 +- addons/account_asset/wizard/__init__.py | 4 +- .../account_bank_statement_import/__init__.py | 6 +- .../wizard/__init__.py | 2 +- addons/account_budget/__init__.py | 2 +- addons/account_budget/models/__init__.py | 4 +- addons/account_budget/tests/__init__.py | 6 +- addons/account_cancel/__init__.py | 2 +- addons/account_cancel/models/__init__.py | 2 +- addons/account_check_printing/__init__.py | 4 +- .../account_check_printing/models/__init__.py | 4 +- .../account_check_printing/wizard/__init__.py | 2 +- addons/account_tax_python/__init__.py | 2 +- addons/account_tax_python/models/__init__.py | 2 +- addons/account_test/__init__.py | 4 +- addons/account_test/models/__init__.py | 2 +- addons/account_test/report/__init__.py | 2 +- addons/account_voucher/__init__.py | 2 +- addons/account_voucher/models/__init__.py | 2 +- addons/analytic/__init__.py | 2 +- addons/analytic/models/__init__.py | 2 +- addons/anonymization/__init__.py | 4 +- addons/anonymization/models/__init__.py | 2 +- addons/anonymization/wizard/__init__.py | 2 +- addons/auth_crypt/__init__.py | 2 +- addons/auth_crypt/models/__init__.py | 2 +- addons/auth_ldap/__init__.py | 2 +- addons/auth_ldap/models/__init__.py | 8 +- addons/auth_oauth/__init__.py | 4 +- addons/auth_oauth/controllers/__init__.py | 2 +- addons/auth_oauth/models/__init__.py | 8 +- addons/auth_signup/__init__.py | 4 +- addons/auth_signup/controllers/__init__.py | 2 +- addons/auth_signup/models/__init__.py | 6 +- addons/barcodes/__init__.py | 2 +- addons/barcodes/models/__init__.py | 4 +- addons/base_address_city/__init__.py | 2 +- addons/base_address_city/models/__init__.py | 6 +- addons/base_address_extended/__init__.py | 2 +- .../base_address_extended/models/__init__.py | 2 +- .../base_address_extended/tests/__init__.py | 2 +- addons/base_automation/__init__.py | 4 +- addons/base_automation/models/__init__.py | 4 +- addons/base_automation/tests/__init__.py | 4 +- addons/base_gengo/__init__.py | 6 +- addons/base_gengo/controller/__init__.py | 2 +- addons/base_gengo/models/__init__.py | 6 +- addons/base_gengo/wizard/__init__.py | 2 +- addons/base_geolocalize/__init__.py | 2 +- addons/base_geolocalize/models/__init__.py | 2 +- addons/base_iban/__init__.py | 2 +- addons/base_iban/models/__init__.py | 2 +- addons/base_import/__init__.py | 4 +- addons/base_import/controllers/__init__.py | 2 +- addons/base_import/models/__init__.py | 4 +- addons/base_import/models/base_import.py | 2 +- addons/base_import/tests/__init__.py | 2 +- addons/base_import_module/__init__.py | 4 +- .../controllers/__init__.py | 2 +- addons/base_import_module/models/__init__.py | 6 +- addons/base_setup/__init__.py | 2 +- addons/base_setup/models/__init__.py | 2 +- addons/base_sparse_field/__init__.py | 1 - addons/base_vat/__init__.py | 2 +- addons/base_vat/models/__init__.py | 6 +- addons/board/__init__.py | 4 +- addons/board/controllers/__init__.py | 2 +- addons/board/models/__init__.py | 2 +- addons/bus/__init__.py | 4 +- addons/bus/controllers/__init__.py | 2 +- addons/bus/models/__init__.py | 8 +- addons/calendar/__init__.py | 6 +- addons/calendar/controllers/__init__.py | 4 +- addons/calendar/models/__init__.py | 10 +- addons/calendar/wizard/__init__.py | 2 +- addons/crm/__init__.py | 8 +- addons/crm/controllers/__init__.py | 2 +- addons/crm/models/__init__.py | 16 +- addons/crm/report/__init__.py | 4 +- addons/crm/tests/__init__.py | 10 +- addons/crm/wizard/__init__.py | 10 +- addons/crm_livechat/__init__.py | 2 +- addons/crm_livechat/models/__init__.py | 2 +- addons/crm_project_issue/__init__.py | 2 +- addons/crm_project_issue/wizard/__init__.py | 2 +- addons/delivery/__init__.py | 4 +- addons/delivery/models/__init__.py | 16 +- addons/delivery/wizard/__init__.py | 2 +- addons/document/__init__.py | 2 +- addons/document/models/__init__.py | 2 +- addons/event/__init__.py | 6 +- addons/event/models/__init__.py | 8 +- addons/event/wizard/__init__.py | 2 +- addons/event_sale/__init__.py | 4 +- addons/event_sale/models/__init__.py | 8 +- addons/event_sale/tests/__init__.py | 2 +- addons/event_sale/wizard/__init__.py | 2 +- addons/fetchmail/__init__.py | 2 +- addons/fetchmail/models/__init__.py | 4 +- addons/fleet/__init__.py | 2 +- addons/fleet/models/__init__.py | 6 +- addons/gamification/__init__.py | 4 +- addons/gamification/models/__init__.py | 6 +- addons/gamification/wizard/__init__.py | 4 +- addons/google_account/__init__.py | 6 +- addons/google_account/controllers/__init__.py | 2 +- addons/google_account/models/__init__.py | 2 +- addons/google_calendar/__init__.py | 4 +- .../google_calendar/controllers/__init__.py | 2 +- addons/google_calendar/models/__init__.py | 8 +- addons/google_drive/__init__.py | 2 +- addons/google_drive/models/__init__.py | 4 +- addons/google_spreadsheet/__init__.py | 2 +- addons/google_spreadsheet/models/__init__.py | 4 +- addons/hr/__init__.py | 2 +- addons/hr/models/__init__.py | 10 +- addons/hr_attendance/__init__.py | 2 +- addons/hr_attendance/models/__init__.py | 6 +- addons/hr_attendance/tests/__init__.py | 4 +- addons/hr_contract/__init__.py | 2 +- addons/hr_contract/models/__init__.py | 2 +- addons/hr_expense/__init__.py | 4 +- addons/hr_expense/models/__init__.py | 12 +- addons/hr_expense/wizard/__init__.py | 4 +- addons/hr_gamification/__init__.py | 4 +- addons/hr_gamification/models/__init__.py | 4 +- addons/hr_gamification/wizard/__init__.py | 2 +- addons/hr_holidays/__init__.py | 8 +- addons/hr_holidays/controllers/__init__.py | 2 +- addons/hr_holidays/models/__init__.py | 6 +- addons/hr_holidays/report/__init__.py | 4 +- addons/hr_holidays/tests/__init__.py | 2 +- addons/hr_holidays/wizard/__init__.py | 4 +- addons/hr_maintenance/__init__.py | 2 +- addons/hr_maintenance/models/__init__.py | 2 +- addons/hr_org_chart/__init__.py | 4 +- addons/hr_org_chart/controllers/__init__.py | 2 +- addons/hr_org_chart/models/__init__.py | 2 +- addons/hr_payroll/__init__.py | 6 +- addons/hr_payroll/models/__init__.py | 10 +- addons/hr_payroll/report/__init__.py | 4 +- addons/hr_payroll/wizard/__init__.py | 4 +- addons/hr_payroll_account/__init__.py | 4 +- addons/hr_payroll_account/models/__init__.py | 2 +- addons/hr_payroll_account/tests/__init__.py | 2 +- addons/hr_payroll_account/wizard/__init__.py | 2 +- addons/hr_recruitment/__init__.py | 4 +- addons/hr_recruitment/models/__init__.py | 12 +- addons/hr_recruitment/report/__init__.py | 2 +- addons/hr_recruitment_survey/__init__.py | 2 +- .../hr_recruitment_survey/models/__init__.py | 4 +- addons/hr_timesheet/__init__.py | 8 +- addons/hr_timesheet/report/__init__.py | 2 +- addons/hr_timesheet_attendance/__init__.py | 4 +- .../models/__init__.py | 6 +- .../report/__init__.py | 2 +- .../hr_timesheet_attendance/tests/__init__.py | 2 +- addons/hr_timesheet_sheet/__init__.py | 4 +- addons/hr_timesheet_sheet/models/__init__.py | 10 +- addons/hr_timesheet_sheet/wizard/__init__.py | 2 +- addons/hw_blackbox_be/__init__.py | 2 +- addons/hw_blackbox_be/controllers/__init__.py | 2 +- addons/hw_escpos/__init__.py | 4 +- addons/hw_escpos/controllers/__init__.py | 2 +- addons/hw_escpos/escpos/escpos.py | 10 +- addons/hw_escpos/escpos/printer.py | 6 +- addons/hw_posbox_homepage/__init__.py | 2 +- .../controllers/__init__.py | 2 +- addons/hw_posbox_upgrade/__init__.py | 2 +- .../hw_posbox_upgrade/controllers/__init__.py | 2 +- addons/hw_proxy/__init__.py | 2 +- addons/hw_proxy/controllers/__init__.py | 2 +- addons/hw_scale/__init__.py | 2 +- addons/hw_scale/controllers/__init__.py | 2 +- addons/hw_scanner/__init__.py | 2 +- addons/hw_scanner/controllers/__init__.py | 2 +- addons/hw_screen/__init__.py | 2 +- addons/hw_screen/controllers/__init__.py | 2 +- addons/im_livechat/__init__.py | 6 +- addons/im_livechat/controllers/__init__.py | 2 +- addons/im_livechat/models/__init__.py | 8 +- addons/im_livechat/report/__init__.py | 4 +- addons/l10n_be_hr_payroll/__init__.py | 2 +- addons/l10n_be_hr_payroll/models/__init__.py | 2 +- addons/l10n_be_hr_payroll_fleet/__init__.py | 2 +- .../models/__init__.py | 6 +- addons/l10n_be_intrastat/__init__.py | 4 +- addons/l10n_be_intrastat/models/__init__.py | 2 +- addons/l10n_be_intrastat/wizard/__init__.py | 2 +- addons/l10n_be_invoice_bba/__init__.py | 2 +- addons/l10n_be_invoice_bba/models/__init__.py | 4 +- addons/l10n_br/__init__.py | 2 +- addons/l10n_br/models/__init__.py | 2 +- addons/l10n_ch/__init__.py | 2 +- addons/l10n_ch/models/__init__.py | 12 +- addons/l10n_eu_service/__init__.py | 4 +- addons/l10n_eu_service/models/__init__.py | 2 +- addons/l10n_eu_service/wizard/__init__.py | 2 +- addons/l10n_fr/__init__.py | 2 +- addons/l10n_fr/models/__init__.py | 2 +- addons/l10n_fr_fec/__init__.py | 2 +- addons/l10n_fr_fec/wizard/__init__.py | 2 +- addons/l10n_fr_hr_payroll/__init__.py | 4 +- addons/l10n_fr_hr_payroll/models/__init__.py | 4 +- addons/l10n_fr_hr_payroll/report/__init__.py | 2 +- addons/l10n_in_hr_payroll/__init__.py | 6 +- addons/l10n_in_hr_payroll/models/__init__.py | 2 +- addons/l10n_in_hr_payroll/report/__init__.py | 12 +- addons/l10n_in_hr_payroll/wizard/__init__.py | 4 +- addons/l10n_multilang/__init__.py | 2 +- addons/l10n_multilang/models/__init__.py | 4 +- addons/l10n_ro/__init__.py | 2 +- addons/l10n_ro/models/__init__.py | 2 +- addons/link_tracker/__init__.py | 4 +- addons/link_tracker/controller/__init__.py | 2 +- addons/link_tracker/models/__init__.py | 2 +- addons/lunch/__init__.py | 4 +- addons/lunch/models/__init__.py | 2 +- addons/lunch/tests/__init__.py | 2 +- addons/lunch/wizard/__init__.py | 2 +- addons/mail/__init__.py | 8 +- addons/mail/controllers/__init__.py | 4 +- addons/mail/models/__init__.py | 40 ++--- addons/mail/tests/__init__.py | 22 +-- addons/mail/wizard/__init__.py | 6 +- addons/maintenance/__init__.py | 2 +- addons/maintenance/models/__init__.py | 2 +- addons/maintenance/tests/__init__.py | 2 +- addons/marketing_campaign/__init__.py | 4 +- addons/marketing_campaign/models/__init__.py | 6 +- addons/marketing_campaign/report/__init__.py | 2 +- addons/marketing_campaign/tests/__init__.py | 2 +- addons/mass_mailing/__init__.py | 6 +- addons/mass_mailing/controllers/__init__.py | 4 +- addons/mass_mailing/models/__init__.py | 14 +- addons/mass_mailing/wizard/__init__.py | 4 +- addons/mass_mailing_event/__init__.py | 2 +- addons/mass_mailing_event/models/__init__.py | 2 +- addons/mass_mailing_event_track/__init__.py | 2 +- .../models/__init__.py | 2 +- addons/membership/__init__.py | 6 +- addons/membership/models/__init__.py | 8 +- addons/membership/report/__init__.py | 2 +- addons/membership/wizard/__init__.py | 2 +- addons/mrp/__init__.py | 6 +- addons/mrp/models/__init__.py | 34 ++-- addons/mrp/report/__init__.py | 4 +- addons/mrp/tests/__init__.py | 10 +- addons/mrp/wizard/__init__.py | 4 +- addons/mrp_byproduct/__init__.py | 4 +- addons/mrp_byproduct/models/__init__.py | 8 +- addons/mrp_byproduct/tests/__init__.py | 2 +- addons/mrp_byproduct/wizard/__init__.py | 2 +- addons/mrp_repair/__init__.py | 4 +- addons/mrp_repair/models/__init__.py | 2 +- addons/mrp_repair/tests/__init__.py | 2 +- addons/mrp_repair/wizard/__init__.py | 4 +- addons/note/__init__.py | 2 +- addons/note/models/__init__.py | 4 +- addons/note_pad/__init__.py | 2 +- addons/note_pad/models/__init__.py | 2 +- addons/pad/__init__.py | 2 +- addons/pad/models/__init__.py | 6 +- addons/pad_project/__init__.py | 2 +- addons/pad_project/models/__init__.py | 4 +- addons/payment/__init__.py | 2 +- addons/payment/models/__init__.py | 6 +- addons/payment/tests/__init__.py | 2 +- addons/payment_adyen/__init__.py | 4 +- addons/payment_adyen/controllers/__init__.py | 2 +- addons/payment_adyen/models/__init__.py | 2 +- addons/payment_authorize/__init__.py | 4 +- .../payment_authorize/controllers/__init__.py | 2 +- addons/payment_authorize/models/__init__.py | 2 +- addons/payment_authorize/models/payment.py | 2 +- addons/payment_buckaroo/__init__.py | 4 +- .../payment_buckaroo/controllers/__init__.py | 2 +- addons/payment_buckaroo/models/__init__.py | 2 +- addons/payment_ogone/__init__.py | 4 +- addons/payment_ogone/controllers/__init__.py | 2 +- addons/payment_ogone/data/__init__.py | 2 +- addons/payment_ogone/models/__init__.py | 2 +- addons/payment_paypal/__init__.py | 4 +- addons/payment_paypal/controllers/__init__.py | 2 +- addons/payment_paypal/models/__init__.py | 2 +- addons/payment_paypal/tests/__init__.py | 2 +- addons/payment_payumoney/__init__.py | 4 +- .../payment_payumoney/controllers/__init__.py | 2 +- addons/payment_payumoney/models/__init__.py | 2 +- addons/payment_sips/__init__.py | 4 +- addons/payment_sips/controllers/__init__.py | 2 +- addons/payment_sips/models/__init__.py | 2 +- addons/payment_stripe/__init__.py | 4 +- addons/payment_stripe/controllers/__init__.py | 2 +- addons/payment_stripe/models/__init__.py | 2 +- addons/payment_stripe/tests/__init__.py | 2 +- addons/payment_transfer/__init__.py | 4 +- .../payment_transfer/controllers/__init__.py | 2 +- addons/payment_transfer/models/__init__.py | 2 +- addons/point_of_sale/__init__.py | 8 +- addons/point_of_sale/controllers/__init__.py | 4 +- addons/point_of_sale/models/__init__.py | 22 +-- addons/point_of_sale/report/__init__.py | 4 +- addons/point_of_sale/tests/__init__.py | 6 +- addons/point_of_sale/wizard/__init__.py | 10 +- addons/pos_cache/__init__.py | 2 +- addons/pos_cache/models/__init__.py | 2 +- addons/pos_discount/__init__.py | 2 +- addons/pos_discount/models/__init__.py | 2 +- addons/pos_mercury/__init__.py | 2 +- addons/pos_mercury/models/__init__.py | 4 +- addons/pos_reprint/__init__.py | 2 +- addons/pos_reprint/models/__init__.py | 2 +- addons/pos_restaurant/__init__.py | 2 +- addons/pos_restaurant/models/__init__.py | 6 +- addons/pos_sale/__init__.py | 2 +- addons/pos_sale/models/__init__.py | 6 +- addons/procurement/__init__.py | 4 +- addons/procurement/models/__init__.py | 2 +- addons/procurement/tests/__init__.py | 2 +- addons/procurement/wizard/__init__.py | 2 +- addons/procurement_jit/__init__.py | 2 +- addons/product/__init__.py | 6 +- addons/product/models/__init__.py | 18 +-- addons/product/report/__init__.py | 2 +- addons/product/wizard/__init__.py | 2 +- addons/product_email_template/__init__.py | 2 +- .../product_email_template/models/__init__.py | 4 +- addons/product_expiry/__init__.py | 2 +- addons/product_expiry/models/__init__.py | 6 +- addons/product_extended/__init__.py | 2 +- addons/product_extended/models/__init__.py | 2 +- addons/product_margin/__init__.py | 4 +- addons/product_margin/models/__init__.py | 2 +- addons/product_margin/wizard/__init__.py | 2 +- addons/project/__init__.py | 6 +- addons/project/models/__init__.py | 10 +- addons/project/report/__init__.py | 2 +- addons/project/wizard/__init__.py | 2 +- addons/project_issue/__init__.py | 4 +- addons/project_issue/models/__init__.py | 12 +- addons/project_issue/report/__init__.py | 2 +- addons/project_issue/tests/__init__.py | 6 +- addons/project_issue_sheet/__init__.py | 2 +- addons/project_issue_sheet/models/__init__.py | 4 +- addons/purchase/__init__.py | 4 +- addons/purchase/models/__init__.py | 14 +- addons/purchase/report/__init__.py | 2 +- addons/purchase/tests/__init__.py | 8 +- addons/purchase_mrp/__init__.py | 2 +- addons/purchase_mrp/models/__init__.py | 2 +- addons/purchase_requisition/__init__.py | 2 +- .../purchase_requisition/models/__init__.py | 2 +- addons/purchase_requisition/tests/__init__.py | 2 +- addons/rating/__init__.py | 4 +- addons/rating/controllers/__init__.py | 2 +- addons/rating/models/__init__.py | 2 +- addons/rating_project/__init__.py | 2 +- addons/rating_project/models/__init__.py | 2 +- addons/rating_project_issue/__init__.py | 2 +- .../rating_project_issue/models/__init__.py | 2 +- addons/report/__init__.py | 6 +- addons/report/controllers/__init__.py | 2 +- addons/report/models/__init__.py | 16 +- addons/report/tests/__init__.py | 2 +- addons/report_intrastat/__init__.py | 4 +- addons/report_intrastat/models/__init__.py | 2 +- addons/report_intrastat/report/__init__.py | 2 +- addons/report_intrastat/tests/__init__.py | 2 +- addons/resource/__init__.py | 4 +- addons/resource/models/__init__.py | 8 +- addons/sale/__init__.py | 6 +- addons/sale/models/__init__.py | 24 +-- addons/sale/report/__init__.py | 4 +- addons/sale/tests/__init__.py | 6 +- addons/sale/tests/test_sale_order.py | 2 +- addons/sale/wizard/__init__.py | 4 +- addons/sale_crm/__init__.py | 2 +- addons/sale_crm/models/__init__.py | 10 +- addons/sale_expense/tests/__init__.py | 2 +- addons/sale_margin/__init__.py | 4 +- addons/sale_margin/models/__init__.py | 2 +- addons/sale_margin/report/__init__.py | 2 +- addons/sale_mrp/__init__.py | 4 +- addons/sale_mrp/models/__init__.py | 2 +- addons/sale_mrp/tests/__init__.py | 6 +- addons/sale_order_dates/__init__.py | 2 +- addons/sale_order_dates/models/__init__.py | 2 +- addons/sale_order_dates/tests/__init__.py | 2 +- addons/sale_service_rating/__init__.py | 2 +- addons/sale_service_rating/models/__init__.py | 2 +- addons/sale_stock/report/__init__.py | 2 +- addons/sale_stock/tests/__init__.py | 4 +- addons/sale_timesheet/__init__.py | 2 +- addons/sale_timesheet/models/__init__.py | 14 +- addons/sale_timesheet/tests/__init__.py | 4 +- addons/sales_team/__init__.py | 2 +- addons/sales_team/models/__init__.py | 8 +- addons/stock/__init__.py | 8 +- addons/stock/controllers/__init__.py | 2 +- addons/stock/models/__init__.py | 36 ++--- addons/stock/report/__init__.py | 2 +- addons/stock/tests/__init__.py | 6 +- addons/stock/wizard/__init__.py | 12 +- addons/stock_account/__init__.py | 6 +- addons/stock_account/models/__init__.py | 10 +- addons/stock_account/report/__init__.py | 2 +- addons/stock_account/wizard/__init__.py | 4 +- addons/stock_calendar/__init__.py | 2 +- addons/stock_calendar/models/__init__.py | 6 +- addons/stock_landed_costs/__init__.py | 2 +- addons/stock_landed_costs/models/__init__.py | 4 +- addons/stock_picking_wave/__init__.py | 4 +- addons/stock_picking_wave/models/__init__.py | 2 +- addons/stock_picking_wave/wizard/__init__.py | 2 +- addons/survey/__init__.py | 7 +- addons/survey/controllers/__init__.py | 2 +- addons/survey/models/__init__.py | 4 +- addons/survey/tests/__init__.py | 4 +- addons/survey/wizard/__init__.py | 2 +- addons/survey_crm/__init__.py | 2 +- addons/survey_crm/models/__init__.py | 2 +- addons/utm/__init__.py | 2 +- addons/utm/models/__init__.py | 4 +- addons/web/__init__.py | 4 +- addons/web/models/__init__.py | 2 +- addons/web/tests/__init__.py | 6 +- addons/web_editor/__init__.py | 5 +- addons/web_editor/controllers/__init__.py | 2 +- addons/web_editor/models/__init__.py | 12 +- addons/web_editor/tests/__init__.py | 4 +- addons/web_planner/__init__.py | 2 +- addons/web_planner/models/__init__.py | 2 +- addons/web_settings_dashboard/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../web_settings_dashboard/models/__init__.py | 2 +- addons/web_tour/__init__.py | 2 +- addons/web_tour/models/__init__.py | 6 +- addons/website/__init__.py | 7 +- addons/website/controllers/__init__.py | 4 +- addons/website/models/__init__.py | 20 +-- addons/website/tests/__init__.py | 8 +- addons/website/wizard/__init__.py | 2 +- addons/website_blog/__init__.py | 4 +- addons/website_blog/controllers/__init__.py | 2 +- addons/website_blog/models/__init__.py | 6 +- addons/website_crm/__init__.py | 2 +- addons/website_crm/models/__init__.py | 4 +- addons/website_crm/tests/__init__.py | 2 +- addons/website_crm_partner_assign/__init__.py | 9 +- .../controllers/__init__.py | 2 +- .../models/__init__.py | 4 +- .../report/__init__.py | 4 +- .../wizard/__init__.py | 2 +- addons/website_customer/__init__.py | 4 +- .../website_customer/controllers/__init__.py | 2 +- addons/website_customer/models/__init__.py | 2 +- addons/website_event/__init__.py | 4 +- addons/website_event/controllers/__init__.py | 2 +- addons/website_event/models/__init__.py | 2 +- addons/website_event/tests/__init__.py | 2 +- addons/website_event_questions/__init__.py | 6 +- .../controllers/__init__.py | 2 +- .../models/__init__.py | 2 +- .../report/__init__.py | 2 +- addons/website_event_sale/__init__.py | 4 +- .../controllers/__init__.py | 2 +- addons/website_event_sale/models/__init__.py | 6 +- addons/website_event_sale/tests/__init__.py | 2 +- addons/website_event_track/__init__.py | 4 +- .../controllers/__init__.py | 2 +- addons/website_event_track/models/__init__.py | 4 +- addons/website_form/__init__.py | 4 +- addons/website_form/controllers/__init__.py | 2 +- addons/website_form/models/__init__.py | 2 +- addons/website_forum/__init__.py | 5 +- addons/website_forum/controllers/__init__.py | 2 +- addons/website_forum/models/__init__.py | 6 +- addons/website_forum/tests/__init__.py | 6 +- addons/website_forum_doc/__init__.py | 4 +- .../website_forum_doc/controllers/__init__.py | 2 +- addons/website_forum_doc/models/__init__.py | 4 +- addons/website_gengo/__init__.py | 4 +- addons/website_gengo/controllers/__init__.py | 2 +- addons/website_gengo/models/__init__.py | 2 +- addons/website_google_map/__init__.py | 2 +- .../controllers/__init__.py | 2 +- addons/website_hr/__init__.py | 4 +- addons/website_hr/controllers/__init__.py | 2 +- addons/website_hr/models/__init__.py | 2 +- addons/website_hr_recruitment/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../website_hr_recruitment/models/__init__.py | 2 +- .../website_hr_recruitment/tests/__init__.py | 2 +- addons/website_links/__init__.py | 2 +- addons/website_links/controller/__init__.py | 2 +- addons/website_livechat/__init__.py | 4 +- .../website_livechat/controllers/__init__.py | 2 +- addons/website_livechat/models/__init__.py | 4 +- addons/website_mail/__init__.py | 4 +- addons/website_mail/controllers/__init__.py | 2 +- addons/website_mail/models/__init__.py | 4 +- addons/website_mail_channel/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../website_mail_channel/models/__init__.py | 4 +- addons/website_membership/__init__.py | 4 +- .../controllers/__init__.py | 2 +- addons/website_membership/models/__init__.py | 2 +- addons/website_partner/__init__.py | 4 +- .../website_partner/controllers/__init__.py | 2 +- addons/website_partner/models/__init__.py | 2 +- addons/website_payment/__init__.py | 4 +- .../website_payment/controllers/__init__.py | 2 +- addons/website_payment/models/__init__.py | 4 +- addons/website_portal/__init__.py | 4 +- addons/website_portal/controllers/__init__.py | 2 +- addons/website_portal/tests/__init__.py | 4 +- addons/website_portal/wizard/__init__.py | 2 +- addons/website_portal_purchase/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../models/__init__.py | 2 +- addons/website_portal_sale/__init__.py | 4 +- .../controllers/__init__.py | 2 +- addons/website_portal_sale/models/__init__.py | 8 +- addons/website_project/__init__.py | 4 +- .../website_project/controllers/__init__.py | 2 +- addons/website_project/models/__init__.py | 2 +- addons/website_project/tests/__init__.py | 2 +- addons/website_project_issue/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../website_project_issue/models/__init__.py | 2 +- addons/website_quote/__init__.py | 4 +- addons/website_quote/controllers/__init__.py | 2 +- addons/website_quote/models/__init__.py | 6 +- .../website_rating_project_issue/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../models/__init__.py | 2 +- addons/website_sale/__init__.py | 4 +- addons/website_sale/controllers/__init__.py | 6 +- addons/website_sale/models/__init__.py | 14 +- addons/website_sale/tests/__init__.py | 4 +- addons/website_sale_comparison/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../models/__init__.py | 2 +- addons/website_sale_delivery/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../website_sale_delivery/models/__init__.py | 6 +- addons/website_sale_digital/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../website_sale_digital/models/__init__.py | 6 +- addons/website_sale_options/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../website_sale_options/models/__init__.py | 4 +- addons/website_sale_options/tests/__init__.py | 2 +- addons/website_sale_stock/__init__.py | 2 +- addons/website_sale_stock/models/__init__.py | 2 +- addons/website_sale_wishlist/__init__.py | 4 +- .../controllers/__init__.py | 2 +- .../website_sale_wishlist/models/__init__.py | 2 +- addons/website_slides/__init__.py | 4 +- addons/website_slides/controllers/__init__.py | 2 +- addons/website_slides/models/__init__.py | 4 +- addons/website_theme_install/__init__.py | 2 +- .../website_theme_install/models/__init__.py | 2 +- addons/website_twitter/__init__.py | 4 +- .../website_twitter/controllers/__init__.py | 2 +- addons/website_twitter/models/__init__.py | 6 +- doc/python3.rst | 45 ++++++ odoo/__init__.py | 26 +-- odoo/addons/base/__init__.py | 9 +- odoo/addons/base/ir/__init__.py | 38 ++--- odoo/addons/base/ir/ir_http.py | 1 - odoo/addons/base/ir/ir_qweb/fields.py | 4 +- odoo/addons/base/ir/ir_qweb/ir_qweb.py | 22 ++- odoo/addons/base/ir/ir_qweb/qweb.py | 23 +-- odoo/addons/base/module/__init__.py | 6 +- odoo/addons/base/module/module.py | 20 +-- odoo/addons/base/module/report/__init__.py | 2 +- odoo/addons/base/module/wizard/__init__.py | 14 +- .../module/wizard/base_export_language.py | 4 +- .../module/wizard/base_update_translations.py | 4 +- odoo/addons/base/report/__init__.py | 2 +- odoo/addons/base/res/__init__.py | 22 +-- odoo/addons/base/res/res_partner.py | 13 +- odoo/addons/base/tests/__init__.py | 66 ++++---- .../addons/base/tests/test_view_validation.py | 14 +- odoo/addons/test_access_rights/__init__.py | 2 +- .../test_access_rights/tests/__init__.py | 2 +- odoo/addons/test_assetsbundle/__init__.py | 2 +- odoo/addons/test_impex/__init__.py | 2 +- odoo/addons/test_inherit/__init__.py | 2 +- odoo/addons/test_new_api/__init__.py | 3 +- odoo/addons/test_pylint/tests/__init__.py | 2 +- odoo/addons/test_pylint/tests/test_pylint.py | 8 +- odoo/cli/__init__.py | 12 +- odoo/conf/__init__.py | 2 +- odoo/exceptions.py | 2 +- odoo/fields.py | 8 +- odoo/http.py | 14 +- odoo/modules/graph.py | 17 +- odoo/netsvc.py | 8 +- odoo/osv/__init__.py | 2 +- odoo/service/__init__.py | 12 +- odoo/service/common.py | 2 +- odoo/service/model.py | 2 +- odoo/service/report.py | 2 +- odoo/service/wsgi_server.py | 14 +- odoo/sql_db.py | 10 +- odoo/tests/__init__.py | 4 +- .../test_translation_import/__init__.py | 2 +- odoo/tests/common.py | 9 +- odoo/tools/__init__.py | 36 ++--- odoo/tools/amount_to_text_en.py | 2 +- odoo/tools/appdirs.py | 6 +- odoo/tools/config.py | 7 +- odoo/tools/convert.py | 4 +- odoo/tools/import_email.py | 148 ------------------ odoo/tools/lru.py | 2 +- odoo/tools/misc.py | 34 ++-- odoo/tools/test_config.py | 2 +- odoo/tools/translate.py | 17 +- requirements.txt | 2 +- setup.py | 2 +- 633 files changed, 1509 insertions(+), 1583 deletions(-) delete mode 100644 odoo/tools/import_email.py diff --git a/addons/account/__init__.py b/addons/account/__init__.py index 2719ac9a89b11..4b24dbb4e5290 100644 --- a/addons/account/__init__.py +++ b/addons/account/__init__.py @@ -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 diff --git a/addons/account/models/__init__.py b/addons/account/models/__init__.py index 8622076604225..b96da81cb4b45 100644 --- a/addons/account/models/__init__.py +++ b/addons/account/models/__init__.py @@ -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 diff --git a/addons/account/report/__init__.py b/addons/account/report/__init__.py index 3b8e64fea1097..5e7d7d9ca091e 100644 --- a/addons/account/report/__init__.py +++ b/addons/account/report/__init__.py @@ -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 diff --git a/addons/account/wizard/__init__.py b/addons/account/wizard/__init__.py index 502cfc0c71ed5..27fd66837f764 100644 --- a/addons/account/wizard/__init__.py +++ b/addons/account/wizard/__init__.py @@ -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 diff --git a/addons/account_accountant/__init__.py b/addons/account_accountant/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/account_accountant/__init__.py +++ b/addons/account_accountant/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/account_accountant/models/__init__.py b/addons/account_accountant/models/__init__.py index d330642bb782a..c9d3ea6ad49d2 100644 --- a/addons/account_accountant/models/__init__.py +++ b/addons/account_accountant/models/__init__.py @@ -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 diff --git a/addons/account_analytic_default/__init__.py b/addons/account_analytic_default/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/account_analytic_default/__init__.py +++ b/addons/account_analytic_default/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/account_analytic_default/models/__init__.py b/addons/account_analytic_default/models/__init__.py index a5fdeb9e67140..e3b0fea9a16a1 100644 --- a/addons/account_analytic_default/models/__init__.py +++ b/addons/account_analytic_default/models/__init__.py @@ -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 diff --git a/addons/account_asset/__init__.py b/addons/account_asset/__init__.py index 8f7bf4b27dde9..f17ad3dbaece8 100644 --- a/addons/account_asset/__init__.py +++ b/addons/account_asset/__init__.py @@ -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 diff --git a/addons/account_asset/models/__init__.py b/addons/account_asset/models/__init__.py index 458b4b1b23012..93b31dc775cb3 100644 --- a/addons/account_asset/models/__init__.py +++ b/addons/account_asset/models/__init__.py @@ -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 diff --git a/addons/account_asset/report/__init__.py b/addons/account_asset/report/__init__.py index 8f70e34da0e9c..092b527cf0ba2 100644 --- a/addons/account_asset/report/__init__.py +++ b/addons/account_asset/report/__init__.py @@ -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 diff --git a/addons/account_asset/wizard/__init__.py b/addons/account_asset/wizard/__init__.py index e793ab075f794..0cd53499c656b 100644 --- a/addons/account_asset/wizard/__init__.py +++ b/addons/account_asset/wizard/__init__.py @@ -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 diff --git a/addons/account_bank_statement_import/__init__.py b/addons/account_bank_statement_import/__init__.py index 65797c0f6e38d..0947ae71b6226 100644 --- a/addons/account_bank_statement_import/__init__.py +++ b/addons/account_bank_statement_import/__init__.py @@ -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 diff --git a/addons/account_bank_statement_import/wizard/__init__.py b/addons/account_bank_statement_import/wizard/__init__.py index a92b373b4702f..24224d22f5c0e 100644 --- a/addons/account_bank_statement_import/wizard/__init__.py +++ b/addons/account_bank_statement_import/wizard/__init__.py @@ -1 +1 @@ -import journal_creation +from . import journal_creation diff --git a/addons/account_budget/__init__.py b/addons/account_budget/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/account_budget/__init__.py +++ b/addons/account_budget/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/account_budget/models/__init__.py b/addons/account_budget/models/__init__.py index 84be2515324ab..a57168c04bbbe 100644 --- a/addons/account_budget/models/__init__.py +++ b/addons/account_budget/models/__init__.py @@ -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 diff --git a/addons/account_budget/tests/__init__.py b/addons/account_budget/tests/__init__.py index f7e3c174b5b38..1e3f1e3c91ca6 100644 --- a/addons/account_budget/tests/__init__.py +++ b/addons/account_budget/tests/__init__.py @@ -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 diff --git a/addons/account_cancel/__init__.py b/addons/account_cancel/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/account_cancel/__init__.py +++ b/addons/account_cancel/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/account_cancel/models/__init__.py b/addons/account_cancel/models/__init__.py index 433ad1bafd157..062a533e8c246 100644 --- a/addons/account_cancel/models/__init__.py +++ b/addons/account_cancel/models/__init__.py @@ -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 diff --git a/addons/account_check_printing/__init__.py b/addons/account_check_printing/__init__.py index 11529f98733a4..2ae6446f9dc25 100644 --- a/addons/account_check_printing/__init__.py +++ b/addons/account_check_printing/__init__.py @@ -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 diff --git a/addons/account_check_printing/models/__init__.py b/addons/account_check_printing/models/__init__.py index b07a9ea0961c3..6557664f41324 100644 --- a/addons/account_check_printing/models/__init__.py +++ b/addons/account_check_printing/models/__init__.py @@ -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 diff --git a/addons/account_check_printing/wizard/__init__.py b/addons/account_check_printing/wizard/__init__.py index cfb239ad5c1a1..2cdbcdb8b4457 100644 --- a/addons/account_check_printing/wizard/__init__.py +++ b/addons/account_check_printing/wizard/__init__.py @@ -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 diff --git a/addons/account_tax_python/__init__.py b/addons/account_tax_python/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/account_tax_python/__init__.py +++ b/addons/account_tax_python/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/account_tax_python/models/__init__.py b/addons/account_tax_python/models/__init__.py index e5d49d4bd4694..728620e31278a 100644 --- a/addons/account_tax_python/models/__init__.py +++ b/addons/account_tax_python/models/__init__.py @@ -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 diff --git a/addons/account_test/__init__.py b/addons/account_test/__init__.py index a5f67aebd79ab..2609681a9385b 100644 --- a/addons/account_test/__init__.py +++ b/addons/account_test/__init__.py @@ -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 diff --git a/addons/account_test/models/__init__.py b/addons/account_test/models/__init__.py index a1c02fa2c5495..2fbb777482e8a 100644 --- a/addons/account_test/models/__init__.py +++ b/addons/account_test/models/__init__.py @@ -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 diff --git a/addons/account_test/report/__init__.py b/addons/account_test/report/__init__.py index 041b4aa6fc2e5..8476cf00cfe75 100644 --- a/addons/account_test/report/__init__.py +++ b/addons/account_test/report/__init__.py @@ -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 diff --git a/addons/account_voucher/__init__.py b/addons/account_voucher/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/account_voucher/__init__.py +++ b/addons/account_voucher/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/account_voucher/models/__init__.py b/addons/account_voucher/models/__init__.py index 79c19ac7bd029..9fcbd08c89d20 100644 --- a/addons/account_voucher/models/__init__.py +++ b/addons/account_voucher/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account_voucher \ No newline at end of file +from . import account_voucher \ No newline at end of file diff --git a/addons/analytic/__init__.py b/addons/analytic/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/analytic/__init__.py +++ b/addons/analytic/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/analytic/models/__init__.py b/addons/analytic/models/__init__.py index dc527355f7a3b..d1fd64b96f899 100644 --- a/addons/analytic/models/__init__.py +++ b/addons/analytic/models/__init__.py @@ -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 diff --git a/addons/anonymization/__init__.py b/addons/anonymization/__init__.py index 11529f98733a4..2ae6446f9dc25 100644 --- a/addons/anonymization/__init__.py +++ b/addons/anonymization/__init__.py @@ -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 diff --git a/addons/anonymization/models/__init__.py b/addons/anonymization/models/__init__.py index 5d2a1a794f045..fb6fe0e781229 100644 --- a/addons/anonymization/models/__init__.py +++ b/addons/anonymization/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import anonymization +from . import anonymization diff --git a/addons/anonymization/wizard/__init__.py b/addons/anonymization/wizard/__init__.py index d22126ebe0d66..fe8d7d1c64318 100644 --- a/addons/anonymization/wizard/__init__.py +++ b/addons/anonymization/wizard/__init__.py @@ -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 diff --git a/addons/auth_crypt/__init__.py b/addons/auth_crypt/__init__.py index 48f417bbd9320..be9f4fab00ae2 100644 --- a/addons/auth_crypt/__init__.py +++ b/addons/auth_crypt/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/auth_crypt/models/__init__.py b/addons/auth_crypt/models/__init__.py index ab149929a1801..12efd2f2a6663 100644 --- a/addons/auth_crypt/models/__init__.py +++ b/addons/auth_crypt/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import res_users +from . import res_users diff --git a/addons/auth_ldap/__init__.py b/addons/auth_ldap/__init__.py index 1c726f4f08f75..d6210b1285d37 100644 --- a/addons/auth_ldap/__init__.py +++ b/addons/auth_ldap/__init__.py @@ -1,3 +1,3 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/auth_ldap/models/__init__.py b/addons/auth_ldap/models/__init__.py index 5ee6a1b93fb53..a6e08014aca1f 100644 --- a/addons/auth_ldap/models/__init__.py +++ b/addons/auth_ldap/models/__init__.py @@ -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 \ No newline at end of file +from . import res_company +from . import res_company_ldap +from . import res_users +from . import auth_ldap_config_settings \ No newline at end of file diff --git a/addons/auth_oauth/__init__.py b/addons/auth_oauth/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/auth_oauth/__init__.py +++ b/addons/auth_oauth/__init__.py @@ -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 diff --git a/addons/auth_oauth/controllers/__init__.py b/addons/auth_oauth/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/auth_oauth/controllers/__init__.py +++ b/addons/auth_oauth/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/auth_oauth/models/__init__.py b/addons/auth_oauth/models/__init__.py index 7e9ec068f131f..64bbaa4e3d4cb 100644 --- a/addons/auth_oauth/models/__init__.py +++ b/addons/auth_oauth/models/__init__.py @@ -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 diff --git a/addons/auth_signup/__init__.py b/addons/auth_signup/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/auth_signup/__init__.py +++ b/addons/auth_signup/__init__.py @@ -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 diff --git a/addons/auth_signup/controllers/__init__.py b/addons/auth_signup/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/auth_signup/controllers/__init__.py +++ b/addons/auth_signup/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/auth_signup/models/__init__.py b/addons/auth_signup/models/__init__.py index 62ce1aa437ef5..1c34c9b408b3c 100644 --- a/addons/auth_signup/models/__init__.py +++ b/addons/auth_signup/models/__init__.py @@ -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 diff --git a/addons/barcodes/__init__.py b/addons/barcodes/__init__.py index c7b5ac7e1f216..cde864bae21a1 100644 --- a/addons/barcodes/__init__.py +++ b/addons/barcodes/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import models +from . import models diff --git a/addons/barcodes/models/__init__.py b/addons/barcodes/models/__init__.py index ce467f9134fb8..05b9acf6f97a7 100644 --- a/addons/barcodes/models/__init__.py +++ b/addons/barcodes/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import barcodes -import barcode_events_mixin +from . import barcodes +from . import barcode_events_mixin diff --git a/addons/base_address_city/__init__.py b/addons/base_address_city/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/base_address_city/__init__.py +++ b/addons/base_address_city/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/base_address_city/models/__init__.py b/addons/base_address_city/models/__init__.py index e0230d0184837..7d7f5d58b3dfc 100644 --- a/addons/base_address_city/models/__init__.py +++ b/addons/base_address_city/models/__init__.py @@ -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 diff --git a/addons/base_address_extended/__init__.py b/addons/base_address_extended/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/base_address_extended/__init__.py +++ b/addons/base_address_extended/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/base_address_extended/models/__init__.py b/addons/base_address_extended/models/__init__.py index 0e2d5d905fa36..029aa7201b4e1 100644 --- a/addons/base_address_extended/models/__init__.py +++ b/addons/base_address_extended/models/__init__.py @@ -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 diff --git a/addons/base_address_extended/tests/__init__.py b/addons/base_address_extended/tests/__init__.py index 72bcdae08e508..2edd8d64b8ea0 100644 --- a/addons/base_address_extended/tests/__init__.py +++ b/addons/base_address_extended/tests/__init__.py @@ -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 diff --git a/addons/base_automation/__init__.py b/addons/base_automation/__init__.py index 3af721996e549..56990e4d8ee57 100644 --- a/addons/base_automation/__init__.py +++ b/addons/base_automation/__init__.py @@ -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 diff --git a/addons/base_automation/models/__init__.py b/addons/base_automation/models/__init__.py index ef96b3be3470c..dd3d1a0ad3ce3 100644 --- a/addons/base_automation/models/__init__.py +++ b/addons/base_automation/models/__init__.py @@ -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 diff --git a/addons/base_automation/tests/__init__.py b/addons/base_automation/tests/__init__.py index 4232ef4d2e77d..b0ebb370682dc 100644 --- a/addons/base_automation/tests/__init__.py +++ b/addons/base_automation/tests/__init__.py @@ -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 diff --git a/addons/base_gengo/__init__.py b/addons/base_gengo/__init__.py index 3267a73df82dc..b561651d34f59 100644 --- a/addons/base_gengo/__init__.py +++ b/addons/base_gengo/__init__.py @@ -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 diff --git a/addons/base_gengo/controller/__init__.py b/addons/base_gengo/controller/__init__.py index e1ba39812f538..bdc63ee4ddac3 100644 --- a/addons/base_gengo/controller/__init__.py +++ b/addons/base_gengo/controller/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main \ No newline at end of file +from . import main \ No newline at end of file diff --git a/addons/base_gengo/models/__init__.py b/addons/base_gengo/models/__init__.py index 272c957cd984f..7005fe4f9df93 100644 --- a/addons/base_gengo/models/__init__.py +++ b/addons/base_gengo/models/__init__.py @@ -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 diff --git a/addons/base_gengo/wizard/__init__.py b/addons/base_gengo/wizard/__init__.py index 61a6e411f05d6..f361c5909d92f 100644 --- a/addons/base_gengo/wizard/__init__.py +++ b/addons/base_gengo/wizard/__init__.py @@ -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 diff --git a/addons/base_geolocalize/__init__.py b/addons/base_geolocalize/__init__.py index 48f417bbd9320..be9f4fab00ae2 100644 --- a/addons/base_geolocalize/__init__.py +++ b/addons/base_geolocalize/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/base_geolocalize/models/__init__.py b/addons/base_geolocalize/models/__init__.py index dec2dfb35ee35..3f2b7ae35b3a5 100644 --- a/addons/base_geolocalize/models/__init__.py +++ b/addons/base_geolocalize/models/__init__.py @@ -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 diff --git a/addons/base_iban/__init__.py b/addons/base_iban/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/base_iban/__init__.py +++ b/addons/base_iban/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/base_iban/models/__init__.py b/addons/base_iban/models/__init__.py index 873ec9458800a..20f3eefa4b316 100644 --- a/addons/base_iban/models/__init__.py +++ b/addons/base_iban/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import res_partner_bank \ No newline at end of file +from . import res_partner_bank \ No newline at end of file diff --git a/addons/base_import/__init__.py b/addons/base_import/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/base_import/__init__.py +++ b/addons/base_import/__init__.py @@ -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 diff --git a/addons/base_import/controllers/__init__.py b/addons/base_import/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/base_import/controllers/__init__.py +++ b/addons/base_import/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/base_import/models/__init__.py b/addons/base_import/models/__init__.py index 0c98d751b6861..f349a3caea097 100644 --- a/addons/base_import/models/__init__.py +++ b/addons/base_import/models/__init__.py @@ -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 diff --git a/addons/base_import/models/base_import.py b/addons/base_import/models/base_import.py index 334b09846eb09..996b91b03499d 100644 --- a/addons/base_import/models/base_import.py +++ b/addons/base_import/models/base_import.py @@ -37,7 +37,7 @@ xlrd = xlsx = None try: - import odf_ods_reader + from . import odf_ods_reader except ImportError: odf_ods_reader = None diff --git a/addons/base_import/tests/__init__.py b/addons/base_import/tests/__init__.py index cdc1b5d81879b..1b9a63683a841 100644 --- a/addons/base_import/tests/__init__.py +++ b/addons/base_import/tests/__init__.py @@ -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 diff --git a/addons/base_import_module/__init__.py b/addons/base_import_module/__init__.py index 6043e4311e6d3..bb0aae7ee6325 100644 --- a/addons/base_import_module/__init__.py +++ b/addons/base_import_module/__init__.py @@ -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 diff --git a/addons/base_import_module/controllers/__init__.py b/addons/base_import_module/controllers/__init__.py index a84d81a791b1a..757b12a1f1758 100644 --- a/addons/base_import_module/controllers/__init__.py +++ b/addons/base_import_module/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/base_import_module/models/__init__.py b/addons/base_import_module/models/__init__.py index 18a246fa1514c..429bd00baf3ef 100644 --- a/addons/base_import_module/models/__init__.py +++ b/addons/base_import_module/models/__init__.py @@ -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 diff --git a/addons/base_setup/__init__.py b/addons/base_setup/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/base_setup/__init__.py +++ b/addons/base_setup/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/base_setup/models/__init__.py b/addons/base_setup/models/__init__.py index cc830c0b1e995..45cc40bf798af 100644 --- a/addons/base_setup/models/__init__.py +++ b/addons/base_setup/models/__init__.py @@ -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 diff --git a/addons/base_sparse_field/__init__.py b/addons/base_sparse_field/__init__.py index 567548c78f5a2..cde864bae21a1 100644 --- a/addons/base_sparse_field/__init__.py +++ b/addons/base_sparse_field/__init__.py @@ -1,4 +1,3 @@ # -*- coding: utf-8 -*- from . import models -from . import tests diff --git a/addons/base_vat/__init__.py b/addons/base_vat/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/base_vat/__init__.py +++ b/addons/base_vat/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/base_vat/models/__init__.py b/addons/base_vat/models/__init__.py index fa6ae2a4390bc..cd202586594d1 100644 --- a/addons/base_vat/models/__init__.py +++ b/addons/base_vat/models/__init__.py @@ -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 diff --git a/addons/board/__init__.py b/addons/board/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/board/__init__.py +++ b/addons/board/__init__.py @@ -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 diff --git a/addons/board/controllers/__init__.py b/addons/board/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/board/controllers/__init__.py +++ b/addons/board/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/board/models/__init__.py b/addons/board/models/__init__.py index 71d04d4fcb83e..a7b07a28592cb 100644 --- a/addons/board/models/__init__.py +++ b/addons/board/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import board +from . import board diff --git a/addons/bus/__init__.py b/addons/bus/__init__.py index 14ce547a0942c..3b38916015c65 100644 --- a/addons/bus/__init__.py +++ b/addons/bus/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import models -import controllers +from . import models +from . import controllers diff --git a/addons/bus/controllers/__init__.py b/addons/bus/controllers/__init__.py index a84d81a791b1a..757b12a1f1758 100644 --- a/addons/bus/controllers/__init__.py +++ b/addons/bus/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/bus/models/__init__.py b/addons/bus/models/__init__.py index 3e2808e6e2e69..5f99c824cac21 100644 --- a/addons/bus/models/__init__.py +++ b/addons/bus/models/__init__.py @@ -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 diff --git a/addons/calendar/__init__.py b/addons/calendar/__init__.py index 04efd9378a716..8871070722787 100644 --- a/addons/calendar/__init__.py +++ b/addons/calendar/__init__.py @@ -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 diff --git a/addons/calendar/controllers/__init__.py b/addons/calendar/controllers/__init__.py index 8a1f0bd545d0a..bb87d678c16dc 100644 --- a/addons/calendar/controllers/__init__.py +++ b/addons/calendar/controllers/__init__.py @@ -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 diff --git a/addons/calendar/models/__init__.py b/addons/calendar/models/__init__.py index 66784ede987f1..6d3b6f79d696f 100644 --- a/addons/calendar/models/__init__.py +++ b/addons/calendar/models/__init__.py @@ -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 diff --git a/addons/calendar/wizard/__init__.py b/addons/calendar/wizard/__init__.py index 3f7aaae8b4143..5cabe4cf72c00 100644 --- a/addons/calendar/wizard/__init__.py +++ b/addons/calendar/wizard/__init__.py @@ -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 diff --git a/addons/crm/__init__.py b/addons/crm/__init__.py index 859f7ca8e082c..4e9b019bd7a8d 100644 --- a/addons/crm/__init__.py +++ b/addons/crm/__init__.py @@ -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 diff --git a/addons/crm/controllers/__init__.py b/addons/crm/controllers/__init__.py index 12d2d759f34b5..52351d1e770ef 100644 --- a/addons/crm/controllers/__init__.py +++ b/addons/crm/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -* -import main +from . import main diff --git a/addons/crm/models/__init__.py b/addons/crm/models/__init__.py index 02caa223da76b..ded1cea026eca 100644 --- a/addons/crm/models/__init__.py +++ b/addons/crm/models/__init__.py @@ -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 diff --git a/addons/crm/report/__init__.py b/addons/crm/report/__init__.py index 1915e632a5e7b..b1492d0bd20d1 100644 --- a/addons/crm/report/__init__.py +++ b/addons/crm/report/__init__.py @@ -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 diff --git a/addons/crm/tests/__init__.py b/addons/crm/tests/__init__.py index ed686ecdda838..f6f7d9a802e4c 100644 --- a/addons/crm/tests/__init__.py +++ b/addons/crm/tests/__init__.py @@ -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 diff --git a/addons/crm/wizard/__init__.py b/addons/crm/wizard/__init__.py index 6118ccb14cc9e..6a55568adb348 100644 --- a/addons/crm/wizard/__init__.py +++ b/addons/crm/wizard/__init__.py @@ -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 diff --git a/addons/crm_livechat/__init__.py b/addons/crm_livechat/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/crm_livechat/__init__.py +++ b/addons/crm_livechat/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/crm_livechat/models/__init__.py b/addons/crm_livechat/models/__init__.py index aadaef60aafdb..58536ecc3e779 100644 --- a/addons/crm_livechat/models/__init__.py +++ b/addons/crm_livechat/models/__init__.py @@ -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 diff --git a/addons/crm_project_issue/__init__.py b/addons/crm_project_issue/__init__.py index 106dad19d23c3..260776f8a8cc3 100644 --- a/addons/crm_project_issue/__init__.py +++ b/addons/crm_project_issue/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import wizard +from . import wizard diff --git a/addons/crm_project_issue/wizard/__init__.py b/addons/crm_project_issue/wizard/__init__.py index e894202640661..6ebdf03c7abc5 100644 --- a/addons/crm_project_issue/wizard/__init__.py +++ b/addons/crm_project_issue/wizard/__init__.py @@ -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 diff --git a/addons/delivery/__init__.py b/addons/delivery/__init__.py index 11529f98733a4..2ae6446f9dc25 100644 --- a/addons/delivery/__init__.py +++ b/addons/delivery/__init__.py @@ -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 diff --git a/addons/delivery/models/__init__.py b/addons/delivery/models/__init__.py index 33fb6434d719d..3fea8ef6dd1ba 100644 --- a/addons/delivery/models/__init__.py +++ b/addons/delivery/models/__init__.py @@ -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 diff --git a/addons/delivery/wizard/__init__.py b/addons/delivery/wizard/__init__.py index 8abff5b3232b1..b8f703f5bd9a6 100644 --- a/addons/delivery/wizard/__init__.py +++ b/addons/delivery/wizard/__init__.py @@ -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 diff --git a/addons/document/__init__.py b/addons/document/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/document/__init__.py +++ b/addons/document/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/document/models/__init__.py b/addons/document/models/__init__.py index 33a378b9e7ab6..3f80145982f9b 100644 --- a/addons/document/models/__init__.py +++ b/addons/document/models/__init__.py @@ -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 diff --git a/addons/event/__init__.py b/addons/event/__init__.py index 8f7bf4b27dde9..f17ad3dbaece8 100644 --- a/addons/event/__init__.py +++ b/addons/event/__init__.py @@ -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 diff --git a/addons/event/models/__init__.py b/addons/event/models/__init__.py index c1a14d9e4531f..41134a59ee567 100644 --- a/addons/event/models/__init__.py +++ b/addons/event/models/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import event -import event_mail -import event_config_settings -import res_partner +from . import event +from . import event_mail +from . import event_config_settings +from . import res_partner diff --git a/addons/event/wizard/__init__.py b/addons/event/wizard/__init__.py index 8d5ab123d96fd..4f799705611a9 100644 --- a/addons/event/wizard/__init__.py +++ b/addons/event/wizard/__init__.py @@ -2,4 +2,4 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -import event_confirm +from . import event_confirm diff --git a/addons/event_sale/__init__.py b/addons/event_sale/__init__.py index e2b122e1a0897..35e7c9600c556 100644 --- a/addons/event_sale/__init__.py +++ b/addons/event_sale/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -import models -import wizard +from . import models +from . import wizard diff --git a/addons/event_sale/models/__init__.py b/addons/event_sale/models/__init__.py index a55c87dd5a6a1..0eba1dce03b3a 100644 --- a/addons/event_sale/models/__init__.py +++ b/addons/event_sale/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -import account_invoice -import sale_order -import product -import event +from . import account_invoice +from . import sale_order +from . import product +from . import event diff --git a/addons/event_sale/tests/__init__.py b/addons/event_sale/tests/__init__.py index d5109005483ac..c755c1872ae2a 100644 --- a/addons/event_sale/tests/__init__.py +++ b/addons/event_sale/tests/__init__.py @@ -1 +1 @@ -import test_event_sale +from . import test_event_sale diff --git a/addons/event_sale/wizard/__init__.py b/addons/event_sale/wizard/__init__.py index f6bf2a429d913..7be8d4012f9cc 100644 --- a/addons/event_sale/wizard/__init__.py +++ b/addons/event_sale/wizard/__init__.py @@ -1 +1 @@ -import event_edit_registration +from . import event_edit_registration diff --git a/addons/fetchmail/__init__.py b/addons/fetchmail/__init__.py index 7546aae6c85c7..b60115f0aa507 100644 --- a/addons/fetchmail/__init__.py +++ b/addons/fetchmail/__init__.py @@ -1,4 +1,4 @@ #-*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/fetchmail/models/__init__.py b/addons/fetchmail/models/__init__.py index 2d0d6d41f78ac..ba79e4c8b754e 100644 --- a/addons/fetchmail/models/__init__.py +++ b/addons/fetchmail/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import fetchmail -import mail_mail +from . import fetchmail +from . import mail_mail diff --git a/addons/fleet/__init__.py b/addons/fleet/__init__.py index 5f9ef702708ff..807507c1b6ba2 100644 --- a/addons/fleet/__init__.py +++ b/addons/fleet/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models \ No newline at end of file +from . import models \ No newline at end of file diff --git a/addons/fleet/models/__init__.py b/addons/fleet/models/__init__.py index 9ed0370b3f4e2..781603220f3ac 100644 --- a/addons/fleet/models/__init__.py +++ b/addons/fleet/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import fleet_vehicle -import fleet_vehicle_cost -import fleet_vehicle_model +from . import fleet_vehicle +from . import fleet_vehicle_cost +from . import fleet_vehicle_model diff --git a/addons/gamification/__init__.py b/addons/gamification/__init__.py index 11529f98733a4..2ae6446f9dc25 100644 --- a/addons/gamification/__init__.py +++ b/addons/gamification/__init__.py @@ -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 diff --git a/addons/gamification/models/__init__.py b/addons/gamification/models/__init__.py index 0087a70152383..c43ef590c9b6d 100644 --- a/addons/gamification/models/__init__.py +++ b/addons/gamification/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import goal -import challenge -import badge +from . import goal +from . import challenge +from . import badge diff --git a/addons/gamification/wizard/__init__.py b/addons/gamification/wizard/__init__.py index cd20e991552f5..9160eb68c1fa8 100644 --- a/addons/gamification/wizard/__init__.py +++ b/addons/gamification/wizard/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import update_goal -import grant_badge +from . import update_goal +from . import grant_badge diff --git a/addons/google_account/__init__.py b/addons/google_account/__init__.py index 46116ab32da5b..314d8d4bff48d 100644 --- a/addons/google_account/__init__.py +++ b/addons/google_account/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers -from models.google_service import TIMEOUT # noqa +from .models.google_service import TIMEOUT # noqa diff --git a/addons/google_account/controllers/__init__.py b/addons/google_account/controllers/__init__.py index 8ee9bae18d98f..12a7e529b6741 100644 --- a/addons/google_account/controllers/__init__.py +++ b/addons/google_account/controllers/__init__.py @@ -1 +1 @@ -import main +from . import main diff --git a/addons/google_account/models/__init__.py b/addons/google_account/models/__init__.py index 926b8d2841d8e..97134e71460b3 100644 --- a/addons/google_account/models/__init__.py +++ b/addons/google_account/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import google_service +from . import google_service diff --git a/addons/google_calendar/__init__.py b/addons/google_calendar/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/google_calendar/__init__.py +++ b/addons/google_calendar/__init__.py @@ -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 diff --git a/addons/google_calendar/controllers/__init__.py b/addons/google_calendar/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/google_calendar/controllers/__init__.py +++ b/addons/google_calendar/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/google_calendar/models/__init__.py b/addons/google_calendar/models/__init__.py index 898ce8a88e89c..23cba3b99b317 100644 --- a/addons/google_calendar/models/__init__.py +++ b/addons/google_calendar/models/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import calendar -import res_users -import google_calendar -import res_config +from . import calendar +from . import res_users +from . import google_calendar +from . import res_config diff --git a/addons/google_drive/__init__.py b/addons/google_drive/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/google_drive/__init__.py +++ b/addons/google_drive/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/google_drive/models/__init__.py b/addons/google_drive/models/__init__.py index bfd04903c5d14..e0a4cc5dc1294 100644 --- a/addons/google_drive/models/__init__.py +++ b/addons/google_drive/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import google_drive -import res_config +from . import google_drive +from . import res_config diff --git a/addons/google_spreadsheet/__init__.py b/addons/google_spreadsheet/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/google_spreadsheet/__init__.py +++ b/addons/google_spreadsheet/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/google_spreadsheet/models/__init__.py b/addons/google_spreadsheet/models/__init__.py index 1080fde10ae62..288b7b7fbac23 100644 --- a/addons/google_spreadsheet/models/__init__.py +++ b/addons/google_spreadsheet/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import base_config_settings -import google_drive +from . import base_config_settings +from . import google_drive diff --git a/addons/hr/__init__.py b/addons/hr/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/hr/__init__.py +++ b/addons/hr/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/hr/models/__init__.py b/addons/hr/models/__init__.py index e396b616d67cd..5640a49fa92c8 100644 --- a/addons/hr/models/__init__.py +++ b/addons/hr/models/__init__.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr -import hr_config_settings -import mail_alias -import res_partner -import res_users +from . import hr +from . import hr_config_settings +from . import mail_alias +from . import res_partner +from . import res_users diff --git a/addons/hr_attendance/__init__.py b/addons/hr_attendance/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/hr_attendance/__init__.py +++ b/addons/hr_attendance/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/hr_attendance/models/__init__.py b/addons/hr_attendance/models/__init__.py index f5ba8b432625b..a94d4f20a38d1 100644 --- a/addons/hr_attendance/models/__init__.py +++ b/addons/hr_attendance/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -import hr_attendance -import hr_employee -import res_config +from . import hr_attendance +from . import hr_employee +from . import res_config diff --git a/addons/hr_attendance/tests/__init__.py b/addons/hr_attendance/tests/__init__.py index 10e53512bca61..44d12aeb00282 100644 --- a/addons/hr_attendance/tests/__init__.py +++ b/addons/hr_attendance/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -import test_hr_attendance_constraints -import test_hr_attendance_process +from . import test_hr_attendance_constraints +from . import test_hr_attendance_process diff --git a/addons/hr_contract/__init__.py b/addons/hr_contract/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/hr_contract/__init__.py +++ b/addons/hr_contract/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/hr_contract/models/__init__.py b/addons/hr_contract/models/__init__.py index 2c0ec79912ea3..855ff940d5544 100644 --- a/addons/hr_contract/models/__init__.py +++ b/addons/hr_contract/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_contract +from . import hr_contract diff --git a/addons/hr_expense/__init__.py b/addons/hr_expense/__init__.py index 11529f98733a4..2ae6446f9dc25 100644 --- a/addons/hr_expense/__init__.py +++ b/addons/hr_expense/__init__.py @@ -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 diff --git a/addons/hr_expense/models/__init__.py b/addons/hr_expense/models/__init__.py index 8fcc29135af27..103a41b283dfc 100644 --- a/addons/hr_expense/models/__init__.py +++ b/addons/hr_expense/models/__init__.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- -import account_move_line -import hr_department -import hr_expense -import product_template -import res_config -import web_planner +from . import account_move_line +from . import hr_department +from . import hr_expense +from . import product_template +from . import res_config +from . import web_planner diff --git a/addons/hr_expense/wizard/__init__.py b/addons/hr_expense/wizard/__init__.py index faafe22de6bc2..e5883460b2755 100644 --- a/addons/hr_expense/wizard/__init__.py +++ b/addons/hr_expense/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -import hr_expense_refuse_reason -import hr_expense_register_payment +from . import hr_expense_refuse_reason +from . import hr_expense_register_payment diff --git a/addons/hr_gamification/__init__.py b/addons/hr_gamification/__init__.py index 11529f98733a4..2ae6446f9dc25 100644 --- a/addons/hr_gamification/__init__.py +++ b/addons/hr_gamification/__init__.py @@ -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 diff --git a/addons/hr_gamification/models/__init__.py b/addons/hr_gamification/models/__init__.py index 390b2400533e8..6088b354662e2 100644 --- a/addons/hr_gamification/models/__init__.py +++ b/addons/hr_gamification/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import gamification -import hr_employee +from . import gamification +from . import hr_employee diff --git a/addons/hr_gamification/wizard/__init__.py b/addons/hr_gamification/wizard/__init__.py index 0c5e39c5fda9c..04b74f6b3f3eb 100644 --- a/addons/hr_gamification/wizard/__init__.py +++ b/addons/hr_gamification/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import gamification_badge_user_wizard +from . import gamification_badge_user_wizard diff --git a/addons/hr_holidays/__init__.py b/addons/hr_holidays/__init__.py index 859f7ca8e082c..4e9b019bd7a8d 100644 --- a/addons/hr_holidays/__init__.py +++ b/addons/hr_holidays/__init__.py @@ -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 diff --git a/addons/hr_holidays/controllers/__init__.py b/addons/hr_holidays/controllers/__init__.py index 12d2d759f34b5..52351d1e770ef 100644 --- a/addons/hr_holidays/controllers/__init__.py +++ b/addons/hr_holidays/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -* -import main +from . import main diff --git a/addons/hr_holidays/models/__init__.py b/addons/hr_holidays/models/__init__.py index 8926df2310467..334982c4a1d7c 100644 --- a/addons/hr_holidays/models/__init__.py +++ b/addons/hr_holidays/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import resource -import hr -import hr_holidays +from . import resource +from . import hr +from . import hr_holidays diff --git a/addons/hr_holidays/report/__init__.py b/addons/hr_holidays/report/__init__.py index 125f7befa33dd..46fb8bf59f558 100644 --- a/addons/hr_holidays/report/__init__.py +++ b/addons/hr_holidays/report/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import holidays_summary_report -import hr_holidays_leaves_report +from . import holidays_summary_report +from . import hr_holidays_leaves_report diff --git a/addons/hr_holidays/tests/__init__.py b/addons/hr_holidays/tests/__init__.py index e2ed04a93dbd8..06db7a9dca46e 100644 --- a/addons/hr_holidays/tests/__init__.py +++ b/addons/hr_holidays/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_holidays_flow +from . import test_holidays_flow diff --git a/addons/hr_holidays/wizard/__init__.py b/addons/hr_holidays/wizard/__init__.py index 886e26bef76ea..e8b5ecf45ac62 100644 --- a/addons/hr_holidays/wizard/__init__.py +++ b/addons/hr_holidays/wizard/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_holidays_summary_department -import hr_holidays_summary_employees +from . import hr_holidays_summary_department +from . import hr_holidays_summary_employees diff --git a/addons/hr_maintenance/__init__.py b/addons/hr_maintenance/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/hr_maintenance/__init__.py +++ b/addons/hr_maintenance/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/hr_maintenance/models/__init__.py b/addons/hr_maintenance/models/__init__.py index 1c52fb35f9bb4..6a3dc687659b2 100644 --- a/addons/hr_maintenance/models/__init__.py +++ b/addons/hr_maintenance/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import equipment +from . import equipment diff --git a/addons/hr_org_chart/__init__.py b/addons/hr_org_chart/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/hr_org_chart/__init__.py +++ b/addons/hr_org_chart/__init__.py @@ -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 diff --git a/addons/hr_org_chart/controllers/__init__.py b/addons/hr_org_chart/controllers/__init__.py index 1b81ea481c7c0..3177ae13fbb08 100644 --- a/addons/hr_org_chart/controllers/__init__.py +++ b/addons/hr_org_chart/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -* -import hr_org_chart +from . import hr_org_chart diff --git a/addons/hr_org_chart/models/__init__.py b/addons/hr_org_chart/models/__init__.py index aeb53f4e93b2e..71d1e5c7c2385 100644 --- a/addons/hr_org_chart/models/__init__.py +++ b/addons/hr_org_chart/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_employee +from . import hr_employee diff --git a/addons/hr_payroll/__init__.py b/addons/hr_payroll/__init__.py index eb1374bb65e87..7d9f033114963 100644 --- a/addons/hr_payroll/__init__.py +++ b/addons/hr_payroll/__init__.py @@ -1,6 +1,6 @@ #-*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import report -import wizard +from . import models +from . import report +from . import wizard diff --git a/addons/hr_payroll/models/__init__.py b/addons/hr_payroll/models/__init__.py index 792c8e2bcd282..7b5cf4c386adf 100644 --- a/addons/hr_payroll/models/__init__.py +++ b/addons/hr_payroll/models/__init__.py @@ -1,8 +1,8 @@ #-*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_contract -import hr_employee -import hr_payroll_config_settings -import hr_salary_rule -import hr_payslip +from . import hr_contract +from . import hr_employee +from . import hr_payroll_config_settings +from . import hr_salary_rule +from . import hr_payslip diff --git a/addons/hr_payroll/report/__init__.py b/addons/hr_payroll/report/__init__.py index d4ee715d92364..308f6ee3cf1f1 100644 --- a/addons/hr_payroll/report/__init__.py +++ b/addons/hr_payroll/report/__init__.py @@ -2,5 +2,5 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -import report_payslip_details -import report_contribution_register +from . import report_payslip_details +from . import report_contribution_register diff --git a/addons/hr_payroll/wizard/__init__.py b/addons/hr_payroll/wizard/__init__.py index 026cec2b28d15..f433d2bbf0597 100644 --- a/addons/hr_payroll/wizard/__init__.py +++ b/addons/hr_payroll/wizard/__init__.py @@ -1,5 +1,5 @@ #-*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_payroll_payslips_by_employees -import hr_payroll_contribution_register_report +from . import hr_payroll_payslips_by_employees +from . import hr_payroll_contribution_register_report diff --git a/addons/hr_payroll_account/__init__.py b/addons/hr_payroll_account/__init__.py index ef00573b75033..b1311f8e8c722 100644 --- a/addons/hr_payroll_account/__init__.py +++ b/addons/hr_payroll_account/__init__.py @@ -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 diff --git a/addons/hr_payroll_account/models/__init__.py b/addons/hr_payroll_account/models/__init__.py index df42a35e812b8..365c1110a5680 100644 --- a/addons/hr_payroll_account/models/__init__.py +++ b/addons/hr_payroll_account/models/__init__.py @@ -1,4 +1,4 @@ #-*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_payroll_account \ No newline at end of file +from . import hr_payroll_account \ No newline at end of file diff --git a/addons/hr_payroll_account/tests/__init__.py b/addons/hr_payroll_account/tests/__init__.py index fddb4dff2623c..950b4af5abd3c 100644 --- a/addons/hr_payroll_account/tests/__init__.py +++ b/addons/hr_payroll_account/tests/__init__.py @@ -1,4 +1,4 @@ #-*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_hr_payroll_account \ No newline at end of file +from . import test_hr_payroll_account \ No newline at end of file diff --git a/addons/hr_payroll_account/wizard/__init__.py b/addons/hr_payroll_account/wizard/__init__.py index 0756dffa3df72..f9e1f66dffc35 100644 --- a/addons/hr_payroll_account/wizard/__init__.py +++ b/addons/hr_payroll_account/wizard/__init__.py @@ -1,4 +1,4 @@ #-*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_payroll_payslips_by_employees +from . import hr_payroll_payslips_by_employees diff --git a/addons/hr_recruitment/__init__.py b/addons/hr_recruitment/__init__.py index 54bcaa9cd53f0..c3aa29d685e1c 100644 --- a/addons/hr_recruitment/__init__.py +++ b/addons/hr_recruitment/__init__.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import report +from . import models +from . import report diff --git a/addons/hr_recruitment/models/__init__.py b/addons/hr_recruitment/models/__init__.py index b51b441688d7d..124382e05ca42 100644 --- a/addons/hr_recruitment/models/__init__.py +++ b/addons/hr_recruitment/models/__init__.py @@ -1,6 +1,6 @@ -import hr_department -import hr_recruitment -import hr_employee -import hr_job -import hr_recruitment_config_settings -import calendar +from . import hr_department +from . import hr_recruitment +from . import hr_employee +from . import hr_job +from . import hr_recruitment_config_settings +from . import calendar diff --git a/addons/hr_recruitment/report/__init__.py b/addons/hr_recruitment/report/__init__.py index aea9754be34d3..f8808cb948635 100644 --- a/addons/hr_recruitment/report/__init__.py +++ b/addons/hr_recruitment/report/__init__.py @@ -1,4 +1,4 @@ # -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_recruitment_report +from . import hr_recruitment_report diff --git a/addons/hr_recruitment_survey/__init__.py b/addons/hr_recruitment_survey/__init__.py index c7b5ac7e1f216..cde864bae21a1 100644 --- a/addons/hr_recruitment_survey/__init__.py +++ b/addons/hr_recruitment_survey/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import models +from . import models diff --git a/addons/hr_recruitment_survey/models/__init__.py b/addons/hr_recruitment_survey/models/__init__.py index f5b757062b421..3d3ce8e9b0b64 100644 --- a/addons/hr_recruitment_survey/models/__init__.py +++ b/addons/hr_recruitment_survey/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -import hr_job -import hr_applicant +from . import hr_job +from . import hr_applicant diff --git a/addons/hr_timesheet/__init__.py b/addons/hr_timesheet/__init__.py index 8047c5180870e..a3486c6ec8af0 100644 --- a/addons/hr_timesheet/__init__.py +++ b/addons/hr_timesheet/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_timesheet -import hr_timesheet_config_settings -import project_timesheet -import report +from . import hr_timesheet +from . import hr_timesheet_config_settings +from . import project_timesheet +from . import report diff --git a/addons/hr_timesheet/report/__init__.py b/addons/hr_timesheet/report/__init__.py index e4d6e70750e9e..e56203fb759aa 100644 --- a/addons/hr_timesheet/report/__init__.py +++ b/addons/hr_timesheet/report/__init__.py @@ -1 +1 @@ -import project_report +from . import project_report diff --git a/addons/hr_timesheet_attendance/__init__.py b/addons/hr_timesheet_attendance/__init__.py index c2abfbdfea892..0bedb4deb0999 100644 --- a/addons/hr_timesheet_attendance/__init__.py +++ b/addons/hr_timesheet_attendance/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import report \ No newline at end of file +from . import models +from . import report \ No newline at end of file diff --git a/addons/hr_timesheet_attendance/models/__init__.py b/addons/hr_timesheet_attendance/models/__init__.py index e9110f22b7ce9..8c881d5bce38e 100644 --- a/addons/hr_timesheet_attendance/models/__init__.py +++ b/addons/hr_timesheet_attendance/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_attendance -import hr_timesheet_sheet -import res_company +from . import hr_attendance +from . import hr_timesheet_sheet +from . import res_company diff --git a/addons/hr_timesheet_attendance/report/__init__.py b/addons/hr_timesheet_attendance/report/__init__.py index 18d5feae89149..bfe5a138078ad 100644 --- a/addons/hr_timesheet_attendance/report/__init__.py +++ b/addons/hr_timesheet_attendance/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_timesheet_attendance_report +from . import hr_timesheet_attendance_report diff --git a/addons/hr_timesheet_attendance/tests/__init__.py b/addons/hr_timesheet_attendance/tests/__init__.py index 1ad4fa2eea780..50a24fb186f48 100644 --- a/addons/hr_timesheet_attendance/tests/__init__.py +++ b/addons/hr_timesheet_attendance/tests/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import test_hr_timesheet_sheet +from . import test_hr_timesheet_sheet diff --git a/addons/hr_timesheet_sheet/__init__.py b/addons/hr_timesheet_sheet/__init__.py index 1331bcbef9225..e7ae8afb15455 100644 --- a/addons/hr_timesheet_sheet/__init__.py +++ b/addons/hr_timesheet_sheet/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import wizard \ No newline at end of file +from . import models +from . import wizard \ No newline at end of file diff --git a/addons/hr_timesheet_sheet/models/__init__.py b/addons/hr_timesheet_sheet/models/__init__.py index b8c428e1acf51..49bf4bfdc51c2 100644 --- a/addons/hr_timesheet_sheet/models/__init__.py +++ b/addons/hr_timesheet_sheet/models/__init__.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account_analytic_line -import hr_department -import hr_employee -import hr_timesheet_sheet -import res_company +from . import account_analytic_line +from . import hr_department +from . import hr_employee +from . import hr_timesheet_sheet +from . import res_company diff --git a/addons/hr_timesheet_sheet/wizard/__init__.py b/addons/hr_timesheet_sheet/wizard/__init__.py index 58ab3723b4e58..e610787228f1f 100644 --- a/addons/hr_timesheet_sheet/wizard/__init__.py +++ b/addons/hr_timesheet_sheet/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_timesheet_current +from . import hr_timesheet_current diff --git a/addons/hw_blackbox_be/__init__.py b/addons/hw_blackbox_be/__init__.py index bf7fb7b45c158..dd15b5c32e51c 100644 --- a/addons/hw_blackbox_be/__init__.py +++ b/addons/hw_blackbox_be/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers +from . import controllers diff --git a/addons/hw_blackbox_be/controllers/__init__.py b/addons/hw_blackbox_be/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/hw_blackbox_be/controllers/__init__.py +++ b/addons/hw_blackbox_be/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/hw_escpos/__init__.py b/addons/hw_escpos/__init__.py index 6ce44657d66c8..175e48aa04e1a 100644 --- a/addons/hw_escpos/__init__.py +++ b/addons/hw_escpos/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers -import escpos +from . import controllers +from . import escpos diff --git a/addons/hw_escpos/controllers/__init__.py b/addons/hw_escpos/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/hw_escpos/controllers/__init__.py +++ b/addons/hw_escpos/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/hw_escpos/escpos/escpos.py b/addons/hw_escpos/escpos/escpos.py index 994c7769af692..b0294d0f8152d 100644 --- a/addons/hw_escpos/escpos/escpos.py +++ b/addons/hw_escpos/escpos/escpos.py @@ -5,12 +5,12 @@ import copy import io import math -import md5 import re import traceback -import xml.etree.ElementTree as ET +from hashlib import md5 from PIL import Image +import xml.etree.ElementTree as ET try: import jcconv @@ -22,8 +22,8 @@ except ImportError: qrcode = None -from constants import * -from exceptions import * +from .constants import * +from .exceptions import * def utfstr(stuff): """ converts stuff to string and does without failing if stuff is a utf8 string """ @@ -431,7 +431,7 @@ def print_base64_image(self,img): print('print_b64_img') - id = md5.new(img).digest() + id = md5(img).digest() if id not in self.img_cache: print('not in cache') diff --git a/addons/hw_escpos/escpos/printer.py b/addons/hw_escpos/escpos/printer.py index 52bf73396cf4f..4207919cbc100 100644 --- a/addons/hw_escpos/escpos/printer.py +++ b/addons/hw_escpos/escpos/printer.py @@ -6,9 +6,9 @@ import usb.core import usb.util -from escpos import * -from constants import * -from exceptions import * +from .escpos import * +from .constants import * +from .exceptions import * from time import sleep class Usb(Escpos): diff --git a/addons/hw_posbox_homepage/__init__.py b/addons/hw_posbox_homepage/__init__.py index bf7fb7b45c158..dd15b5c32e51c 100644 --- a/addons/hw_posbox_homepage/__init__.py +++ b/addons/hw_posbox_homepage/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers +from . import controllers diff --git a/addons/hw_posbox_homepage/controllers/__init__.py b/addons/hw_posbox_homepage/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/hw_posbox_homepage/controllers/__init__.py +++ b/addons/hw_posbox_homepage/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/hw_posbox_upgrade/__init__.py b/addons/hw_posbox_upgrade/__init__.py index bf7fb7b45c158..dd15b5c32e51c 100644 --- a/addons/hw_posbox_upgrade/__init__.py +++ b/addons/hw_posbox_upgrade/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers +from . import controllers diff --git a/addons/hw_posbox_upgrade/controllers/__init__.py b/addons/hw_posbox_upgrade/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/hw_posbox_upgrade/controllers/__init__.py +++ b/addons/hw_posbox_upgrade/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/hw_proxy/__init__.py b/addons/hw_proxy/__init__.py index bf7fb7b45c158..dd15b5c32e51c 100644 --- a/addons/hw_proxy/__init__.py +++ b/addons/hw_proxy/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers +from . import controllers diff --git a/addons/hw_proxy/controllers/__init__.py b/addons/hw_proxy/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/hw_proxy/controllers/__init__.py +++ b/addons/hw_proxy/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/hw_scale/__init__.py b/addons/hw_scale/__init__.py index bf7fb7b45c158..dd15b5c32e51c 100644 --- a/addons/hw_scale/__init__.py +++ b/addons/hw_scale/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers +from . import controllers diff --git a/addons/hw_scale/controllers/__init__.py b/addons/hw_scale/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/hw_scale/controllers/__init__.py +++ b/addons/hw_scale/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/hw_scanner/__init__.py b/addons/hw_scanner/__init__.py index bf7fb7b45c158..dd15b5c32e51c 100644 --- a/addons/hw_scanner/__init__.py +++ b/addons/hw_scanner/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers +from . import controllers diff --git a/addons/hw_scanner/controllers/__init__.py b/addons/hw_scanner/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/hw_scanner/controllers/__init__.py +++ b/addons/hw_scanner/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/hw_screen/__init__.py b/addons/hw_screen/__init__.py index bf7fb7b45c158..dd15b5c32e51c 100644 --- a/addons/hw_screen/__init__.py +++ b/addons/hw_screen/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers +from . import controllers diff --git a/addons/hw_screen/controllers/__init__.py b/addons/hw_screen/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/hw_screen/controllers/__init__.py +++ b/addons/hw_screen/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/im_livechat/__init__.py b/addons/im_livechat/__init__.py index 66b01696f08e5..2da4912a4ba36 100644 --- a/addons/im_livechat/__init__.py +++ b/addons/im_livechat/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -import controllers -import models -import report +from . import controllers +from . import models +from . import report diff --git a/addons/im_livechat/controllers/__init__.py b/addons/im_livechat/controllers/__init__.py index a84d81a791b1a..757b12a1f1758 100644 --- a/addons/im_livechat/controllers/__init__.py +++ b/addons/im_livechat/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/im_livechat/models/__init__.py b/addons/im_livechat/models/__init__.py index 070d41c6504d1..7ed0b5e53f9fd 100644 --- a/addons/im_livechat/models/__init__.py +++ b/addons/im_livechat/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -* -import im_livechat_channel -import ir_autovacuum -import mail_channel -import rating +from . import im_livechat_channel +from . import ir_autovacuum +from . import mail_channel +from . import rating diff --git a/addons/im_livechat/report/__init__.py b/addons/im_livechat/report/__init__.py index 02fe2345c7cd5..0441c60273183 100644 --- a/addons/im_livechat/report/__init__.py +++ b/addons/im_livechat/report/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import im_livechat_report_channel -import im_livechat_report_operator +from . import im_livechat_report_channel +from . import im_livechat_report_operator diff --git a/addons/l10n_be_hr_payroll/__init__.py b/addons/l10n_be_hr_payroll/__init__.py index 2c6ed4d464a92..08c9d97f4fd28 100644 --- a/addons/l10n_be_hr_payroll/__init__.py +++ b/addons/l10n_be_hr_payroll/__init__.py @@ -1,4 +1,4 @@ # -*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/l10n_be_hr_payroll/models/__init__.py b/addons/l10n_be_hr_payroll/models/__init__.py index bbb643d1c6b28..6a4d72df3f6bf 100644 --- a/addons/l10n_be_hr_payroll/models/__init__.py +++ b/addons/l10n_be_hr_payroll/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import l10n_be_hr_payroll +from . import l10n_be_hr_payroll diff --git a/addons/l10n_be_hr_payroll_fleet/__init__.py b/addons/l10n_be_hr_payroll_fleet/__init__.py index 2c6ed4d464a92..08c9d97f4fd28 100644 --- a/addons/l10n_be_hr_payroll_fleet/__init__.py +++ b/addons/l10n_be_hr_payroll_fleet/__init__.py @@ -1,4 +1,4 @@ # -*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/l10n_be_hr_payroll_fleet/models/__init__.py b/addons/l10n_be_hr_payroll_fleet/models/__init__.py index e38c339c395aa..5316bae054e37 100644 --- a/addons/l10n_be_hr_payroll_fleet/models/__init__.py +++ b/addons/l10n_be_hr_payroll_fleet/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import fleet -import fleet_config_settings -import hr_contract +from . import fleet +from . import fleet_config_settings +from . import hr_contract diff --git a/addons/l10n_be_intrastat/__init__.py b/addons/l10n_be_intrastat/__init__.py index 11529f98733a4..2ae6446f9dc25 100644 --- a/addons/l10n_be_intrastat/__init__.py +++ b/addons/l10n_be_intrastat/__init__.py @@ -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 diff --git a/addons/l10n_be_intrastat/models/__init__.py b/addons/l10n_be_intrastat/models/__init__.py index cbf02bc724a1c..fd6e09f945e0d 100644 --- a/addons/l10n_be_intrastat/models/__init__.py +++ b/addons/l10n_be_intrastat/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import l10n_be_intrastat +from . import l10n_be_intrastat diff --git a/addons/l10n_be_intrastat/wizard/__init__.py b/addons/l10n_be_intrastat/wizard/__init__.py index 059fca43e9d8a..c75d8692bd376 100644 --- a/addons/l10n_be_intrastat/wizard/__init__.py +++ b/addons/l10n_be_intrastat/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import xml_decl +from . import xml_decl diff --git a/addons/l10n_be_invoice_bba/__init__.py b/addons/l10n_be_invoice_bba/__init__.py index cdeb4349be969..f5bc480ccb8b9 100644 --- a/addons/l10n_be_invoice_bba/__init__.py +++ b/addons/l10n_be_invoice_bba/__init__.py @@ -3,4 +3,4 @@ # Copyright (c) 2011 Noviat nv/sa (www.noviat.be). All rights reserved. -import models +from . import models diff --git a/addons/l10n_be_invoice_bba/models/__init__.py b/addons/l10n_be_invoice_bba/models/__init__.py index 30428dceb77aa..55abb757ff50d 100644 --- a/addons/l10n_be_invoice_bba/models/__init__.py +++ b/addons/l10n_be_invoice_bba/models/__init__.py @@ -3,5 +3,5 @@ # Copyright (c) 2011 Noviat nv/sa (www.noviat.be). All rights reserved. -import res_partner -import account_invoice +from . import res_partner +from . import account_invoice diff --git a/addons/l10n_br/__init__.py b/addons/l10n_br/__init__.py index f064263f79ab0..cbc202055b667 100644 --- a/addons/l10n_br/__init__.py +++ b/addons/l10n_br/__init__.py @@ -3,4 +3,4 @@ # Copyright (C) 2009 Renato Lima - Akretion -import models +from . import models diff --git a/addons/l10n_br/models/__init__.py b/addons/l10n_br/models/__init__.py index e29eb0b071d17..11cb881973402 100644 --- a/addons/l10n_br/models/__init__.py +++ b/addons/l10n_br/models/__init__.py @@ -3,4 +3,4 @@ # Copyright (C) 2009 Renato Lima - Akretion -import account +from . import account diff --git a/addons/l10n_ch/__init__.py b/addons/l10n_ch/__init__.py index b12f4e83744e8..84e652daefdd6 100644 --- a/addons/l10n_ch/__init__.py +++ b/addons/l10n_ch/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models from odoo import api, SUPERUSER_ID diff --git a/addons/l10n_ch/models/__init__.py b/addons/l10n_ch/models/__init__.py index fe19ba43cfbb6..ee8bc3905894e 100644 --- a/addons/l10n_ch/models/__init__.py +++ b/addons/l10n_ch/models/__init__.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account_invoice -import mail_compose_message -import mail_template -import res_bank -import res_company -import res_config \ No newline at end of file +from . import account_invoice +from . import mail_compose_message +from . import mail_template +from . import res_bank +from . import res_company +from . import res_config \ No newline at end of file diff --git a/addons/l10n_eu_service/__init__.py b/addons/l10n_eu_service/__init__.py index 8264f45211ecd..b6f074333803d 100644 --- a/addons/l10n_eu_service/__init__.py +++ b/addons/l10n_eu_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import wizard -import models +from . import wizard +from . import models diff --git a/addons/l10n_eu_service/models/__init__.py b/addons/l10n_eu_service/models/__init__.py index 38f8ba0ddbc91..8fc941ce42247 100644 --- a/addons/l10n_eu_service/models/__init__.py +++ b/addons/l10n_eu_service/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import eu_service_tax_rate +from . import eu_service_tax_rate diff --git a/addons/l10n_eu_service/wizard/__init__.py b/addons/l10n_eu_service/wizard/__init__.py index 106dad19d23c3..260776f8a8cc3 100644 --- a/addons/l10n_eu_service/wizard/__init__.py +++ b/addons/l10n_eu_service/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import wizard +from . import wizard diff --git a/addons/l10n_fr/__init__.py b/addons/l10n_fr/__init__.py index 4b6eae9a9e459..422c6ad09a787 100644 --- a/addons/l10n_fr/__init__.py +++ b/addons/l10n_fr/__init__.py @@ -3,4 +3,4 @@ # Copyright (c) 2008 JAILLET Simon - CrysaLEAD - www.crysalead.fr -import models +from . import models diff --git a/addons/l10n_fr/models/__init__.py b/addons/l10n_fr/models/__init__.py index 564ac1728cb46..b5b43e20b742c 100644 --- a/addons/l10n_fr/models/__init__.py +++ b/addons/l10n_fr/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import l10n_fr +from . import l10n_fr diff --git a/addons/l10n_fr_fec/__init__.py b/addons/l10n_fr_fec/__init__.py index 28a42406d27d4..58d2359634e5a 100644 --- a/addons/l10n_fr_fec/__init__.py +++ b/addons/l10n_fr_fec/__init__.py @@ -3,4 +3,4 @@ # Copyright (C) 2013-2015 Akretion (http://www.akretion.com) -import wizard +from . import wizard diff --git a/addons/l10n_fr_fec/wizard/__init__.py b/addons/l10n_fr_fec/wizard/__init__.py index 082b2905617c8..e16a3c1523a1a 100644 --- a/addons/l10n_fr_fec/wizard/__init__.py +++ b/addons/l10n_fr_fec/wizard/__init__.py @@ -3,4 +3,4 @@ # Copyright (C) 2013-2015 Akretion (http://www.akretion.com) -import account_fr_fec +from . import account_fr_fec diff --git a/addons/l10n_fr_hr_payroll/__init__.py b/addons/l10n_fr_hr_payroll/__init__.py index a5f67aebd79ab..2609681a9385b 100644 --- a/addons/l10n_fr_hr_payroll/__init__.py +++ b/addons/l10n_fr_hr_payroll/__init__.py @@ -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 diff --git a/addons/l10n_fr_hr_payroll/models/__init__.py b/addons/l10n_fr_hr_payroll/models/__init__.py index caab8c46be88e..b9b724f3f837b 100644 --- a/addons/l10n_fr_hr_payroll/models/__init__.py +++ b/addons/l10n_fr_hr_payroll/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import l10n_fr_hr_payroll -import l10n_fr_hr_payroll_config_settings +from . import l10n_fr_hr_payroll +from . import l10n_fr_hr_payroll_config_settings diff --git a/addons/l10n_fr_hr_payroll/report/__init__.py b/addons/l10n_fr_hr_payroll/report/__init__.py index d9ace410905e7..893cc060d6dfb 100644 --- a/addons/l10n_fr_hr_payroll/report/__init__.py +++ b/addons/l10n_fr_hr_payroll/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import fiche_paye +from . import fiche_paye diff --git a/addons/l10n_in_hr_payroll/__init__.py b/addons/l10n_in_hr_payroll/__init__.py index b6f8df591de02..34a7c37d5db83 100644 --- a/addons/l10n_in_hr_payroll/__init__.py +++ b/addons/l10n_in_hr_payroll/__init__.py @@ -1,6 +1,6 @@ # -*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import report -import wizard +from . import models +from . import report +from . import wizard diff --git a/addons/l10n_in_hr_payroll/models/__init__.py b/addons/l10n_in_hr_payroll/models/__init__.py index 090b890d7acb4..dc0a3f58c86c8 100644 --- a/addons/l10n_in_hr_payroll/models/__init__.py +++ b/addons/l10n_in_hr_payroll/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import l10n_in_hr_payroll +from . import l10n_in_hr_payroll diff --git a/addons/l10n_in_hr_payroll/report/__init__.py b/addons/l10n_in_hr_payroll/report/__init__.py index 33b677bed84f4..9c4069ac8b50a 100644 --- a/addons/l10n_in_hr_payroll/report/__init__.py +++ b/addons/l10n_in_hr_payroll/report/__init__.py @@ -1,9 +1,9 @@ # -*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import report_payslip_details -import report_payroll_advice -import report_hr_salary_employee_bymonth -import payment_advice_report -import report_hr_yearly_salary_detail -import payslip_report +from . import report_payslip_details +from . import report_payroll_advice +from . import report_hr_salary_employee_bymonth +from . import payment_advice_report +from . import report_hr_yearly_salary_detail +from . import payslip_report diff --git a/addons/l10n_in_hr_payroll/wizard/__init__.py b/addons/l10n_in_hr_payroll/wizard/__init__.py index ed88724f48305..9f317770eb761 100644 --- a/addons/l10n_in_hr_payroll/wizard/__init__.py +++ b/addons/l10n_in_hr_payroll/wizard/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_salary_employee_bymonth -import hr_yearly_salary_detail +from . import hr_salary_employee_bymonth +from . import hr_yearly_salary_detail diff --git a/addons/l10n_multilang/__init__.py b/addons/l10n_multilang/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/l10n_multilang/__init__.py +++ b/addons/l10n_multilang/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/l10n_multilang/models/__init__.py b/addons/l10n_multilang/models/__init__.py index e2616196f9e3c..c57ec139e10e7 100644 --- a/addons/l10n_multilang/models/__init__.py +++ b/addons/l10n_multilang/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account -import l10n_multilang +from . import account +from . import l10n_multilang diff --git a/addons/l10n_ro/__init__.py b/addons/l10n_ro/__init__.py index bd7c6e758a522..b92cd457eeeb6 100644 --- a/addons/l10n_ro/__init__.py +++ b/addons/l10n_ro/__init__.py @@ -7,4 +7,4 @@ # Copyright (C) 2011 TOTAL PC SYSTEMS (http://www.erpsystems.ro). # Copyright (C) 2009 () -import models +from . import models diff --git a/addons/l10n_ro/models/__init__.py b/addons/l10n_ro/models/__init__.py index 1e3dc5a9c2bcf..9ec15f238e284 100644 --- a/addons/l10n_ro/models/__init__.py +++ b/addons/l10n_ro/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import res_partner +from . import res_partner diff --git a/addons/link_tracker/__init__.py b/addons/link_tracker/__init__.py index 12ce74572a72c..c57bb82153af2 100644 --- a/addons/link_tracker/__init__.py +++ b/addons/link_tracker/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import models -import controller \ No newline at end of file +from . import models +from . import controller \ No newline at end of file diff --git a/addons/link_tracker/controller/__init__.py b/addons/link_tracker/controller/__init__.py index a84d81a791b1a..757b12a1f1758 100644 --- a/addons/link_tracker/controller/__init__.py +++ b/addons/link_tracker/controller/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/link_tracker/models/__init__.py b/addons/link_tracker/models/__init__.py index 32330efefd530..6436fc3a4bac4 100644 --- a/addons/link_tracker/models/__init__.py +++ b/addons/link_tracker/models/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import link_tracker +from . import link_tracker diff --git a/addons/lunch/__init__.py b/addons/lunch/__init__.py index 8264f45211ecd..b6f074333803d 100644 --- a/addons/lunch/__init__.py +++ b/addons/lunch/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import wizard -import models +from . import wizard +from . import models diff --git a/addons/lunch/models/__init__.py b/addons/lunch/models/__init__.py index 6a17f40da4a3a..9824b4ad3b053 100644 --- a/addons/lunch/models/__init__.py +++ b/addons/lunch/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import lunch +from . import lunch diff --git a/addons/lunch/tests/__init__.py b/addons/lunch/tests/__init__.py index a83148bcdce27..f9d697d7b2c59 100644 --- a/addons/lunch/tests/__init__.py +++ b/addons/lunch/tests/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import test_lunch +from . import test_lunch diff --git a/addons/lunch/wizard/__init__.py b/addons/lunch/wizard/__init__.py index 6485b66c26702..80c2ca035008f 100644 --- a/addons/lunch/wizard/__init__.py +++ b/addons/lunch/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import lucky_order +from . import lucky_order diff --git a/addons/mail/__init__.py b/addons/mail/__init__.py index 725468139814c..71bbda566df19 100644 --- a/addons/mail/__init__.py +++ b/addons/mail/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -import models -import wizard -import controllers -import tests.test_mail_model +from . import models +from . import wizard +from . import controllers +from .tests import test_mail_model diff --git a/addons/mail/controllers/__init__.py b/addons/mail/controllers/__init__.py index c59e37b30c87e..48f637f49a735 100644 --- a/addons/mail/controllers/__init__.py +++ b/addons/mail/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -* -import main -import bus +from . import main +from . import bus diff --git a/addons/mail/models/__init__.py b/addons/mail/models/__init__.py index 43caa97b6f932..89442c66689dd 100644 --- a/addons/mail/models/__init__.py +++ b/addons/mail/models/__init__.py @@ -1,22 +1,22 @@ # -*- coding: utf-8 -*- -import mail_message_subtype -import mail_tracking_value -import mail_alias -import mail_followers -import mail_notification -import mail_message -import mail_activity -import mail_mail -import mail_thread -import mail_channel -import mail_template -import mail_shortcode -import res_partner -import res_users -import res_config -import update -import ir_actions -import ir_autovacuum -import ir_model -import html2text +from . import mail_message_subtype +from . import mail_tracking_value +from . import mail_alias +from . import mail_followers +from . import mail_notification +from . import mail_message +from . import mail_activity +from . import mail_mail +from . import mail_thread +from . import mail_channel +from . import mail_template +from . import mail_shortcode +from . import res_partner +from . import res_users +from . import res_config +from . import update +from . import ir_actions +from . import ir_autovacuum +from . import ir_model +from . import html2text diff --git a/addons/mail/tests/__init__.py b/addons/mail/tests/__init__.py index 1ff431bd6335b..be868528e4533 100644 --- a/addons/mail/tests/__init__.py +++ b/addons/mail/tests/__init__.py @@ -1,13 +1,13 @@ # -*- coding: utf-8 -*- -import test_mail_followers -import test_mail_message -import test_mail_features -import test_mail_channel -import test_mail_gateway -import test_message_read -import test_message_track -import test_mail_template -import test_invite -import test_ir_actions -import test_update_notification +from . import test_mail_followers +from . import test_mail_message +from . import test_mail_features +from . import test_mail_channel +from . import test_mail_gateway +from . import test_message_read +from . import test_message_track +from . import test_mail_template +from . import test_invite +from . import test_ir_actions +from . import test_update_notification diff --git a/addons/mail/wizard/__init__.py b/addons/mail/wizard/__init__.py index 15b4be9ea36a6..2181ffa826678 100644 --- a/addons/mail/wizard/__init__.py +++ b/addons/mail/wizard/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import invite -import mail_compose_message -import email_template_preview +from . import invite +from . import mail_compose_message +from . import email_template_preview diff --git a/addons/maintenance/__init__.py b/addons/maintenance/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/maintenance/__init__.py +++ b/addons/maintenance/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/maintenance/models/__init__.py b/addons/maintenance/models/__init__.py index 3641d220dbc70..fb9363f4230ee 100644 --- a/addons/maintenance/models/__init__.py +++ b/addons/maintenance/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import maintenance +from . import maintenance diff --git a/addons/maintenance/tests/__init__.py b/addons/maintenance/tests/__init__.py index 0ed77b51a2cb5..ac9f331eab920 100644 --- a/addons/maintenance/tests/__init__.py +++ b/addons/maintenance/tests/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import test_maintenance +from . import test_maintenance diff --git a/addons/marketing_campaign/__init__.py b/addons/marketing_campaign/__init__.py index a5f67aebd79ab..2609681a9385b 100644 --- a/addons/marketing_campaign/__init__.py +++ b/addons/marketing_campaign/__init__.py @@ -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 diff --git a/addons/marketing_campaign/models/__init__.py b/addons/marketing_campaign/models/__init__.py index 70b017971bc90..b272bd2b23f69 100644 --- a/addons/marketing_campaign/models/__init__.py +++ b/addons/marketing_campaign/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ir_actions -import mail_template -import marketing_campaign \ No newline at end of file +from . import ir_actions +from . import mail_template +from . import marketing_campaign \ No newline at end of file diff --git a/addons/marketing_campaign/report/__init__.py b/addons/marketing_campaign/report/__init__.py index 8f8721fddb38e..6de930645a9ef 100644 --- a/addons/marketing_campaign/report/__init__.py +++ b/addons/marketing_campaign/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import campaign_analysis +from . import campaign_analysis diff --git a/addons/marketing_campaign/tests/__init__.py b/addons/marketing_campaign/tests/__init__.py index 0f036ac5661c5..15a92e8d0fd76 100644 --- a/addons/marketing_campaign/tests/__init__.py +++ b/addons/marketing_campaign/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_marketing_campaign_flow \ No newline at end of file +from . import test_marketing_campaign_flow \ No newline at end of file diff --git a/addons/mass_mailing/__init__.py b/addons/mass_mailing/__init__.py index 04efd9378a716..8871070722787 100644 --- a/addons/mass_mailing/__init__.py +++ b/addons/mass_mailing/__init__.py @@ -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 diff --git a/addons/mass_mailing/controllers/__init__.py b/addons/mass_mailing/controllers/__init__.py index 373fab1834331..83d13fa601d99 100644 --- a/addons/mass_mailing/controllers/__init__.py +++ b/addons/mass_mailing/controllers/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main -import web_editor +from . import main +from . import web_editor diff --git a/addons/mass_mailing/models/__init__.py b/addons/mass_mailing/models/__init__.py index cbcdc843dc9be..06f5f05cff31e 100644 --- a/addons/mass_mailing/models/__init__.py +++ b/addons/mass_mailing/models/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import mass_mailing -import mass_mailing_stats -import mail_mail -import mail_thread -import res_config -import mass_mailing_report -import link_tracker +from . import mass_mailing +from . import mass_mailing_stats +from . import mail_mail +from . import mail_thread +from . import res_config +from . import mass_mailing_report +from . import link_tracker diff --git a/addons/mass_mailing/wizard/__init__.py b/addons/mass_mailing/wizard/__init__.py index fdc54bdb19f7f..af5b9192672b1 100644 --- a/addons/mass_mailing/wizard/__init__.py +++ b/addons/mass_mailing/wizard/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_mailing -import mail_compose_message +from . import test_mailing +from . import mail_compose_message diff --git a/addons/mass_mailing_event/__init__.py b/addons/mass_mailing_event/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/mass_mailing_event/__init__.py +++ b/addons/mass_mailing_event/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/mass_mailing_event/models/__init__.py b/addons/mass_mailing_event/models/__init__.py index 770d2eb579780..808620241152b 100644 --- a/addons/mass_mailing_event/models/__init__.py +++ b/addons/mass_mailing_event/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import event +from . import event diff --git a/addons/mass_mailing_event_track/__init__.py b/addons/mass_mailing_event_track/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/mass_mailing_event_track/__init__.py +++ b/addons/mass_mailing_event_track/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/mass_mailing_event_track/models/__init__.py b/addons/mass_mailing_event_track/models/__init__.py index 770d2eb579780..808620241152b 100644 --- a/addons/mass_mailing_event_track/models/__init__.py +++ b/addons/mass_mailing_event_track/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import event +from . import event diff --git a/addons/membership/__init__.py b/addons/membership/__init__.py index 8f7bf4b27dde9..f17ad3dbaece8 100644 --- a/addons/membership/__init__.py +++ b/addons/membership/__init__.py @@ -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 diff --git a/addons/membership/models/__init__.py b/addons/membership/models/__init__.py index ef27c9195364f..c82af4339ef5b 100644 --- a/addons/membership/models/__init__.py +++ b/addons/membership/models/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import membership -import partner -import product -import account_invoice +from . import membership +from . import partner +from . import product +from . import account_invoice diff --git a/addons/membership/report/__init__.py b/addons/membership/report/__init__.py index e738dd24cf287..5d12abb4becc5 100644 --- a/addons/membership/report/__init__.py +++ b/addons/membership/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import report_membership +from . import report_membership diff --git a/addons/membership/wizard/__init__.py b/addons/membership/wizard/__init__.py index 3b3911e3adf4c..b374507287c7d 100644 --- a/addons/membership/wizard/__init__.py +++ b/addons/membership/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import membership_invoice +from . import membership_invoice diff --git a/addons/mrp/__init__.py b/addons/mrp/__init__.py index 8f7bf4b27dde9..f17ad3dbaece8 100644 --- a/addons/mrp/__init__.py +++ b/addons/mrp/__init__.py @@ -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 diff --git a/addons/mrp/models/__init__.py b/addons/mrp/models/__init__.py index 34cb0284545b7..011d288123a6e 100644 --- a/addons/mrp/models/__init__.py +++ b/addons/mrp/models/__init__.py @@ -1,20 +1,20 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ir_attachment -import mrp_config_settings -import mrp_bom -import mrp_message -import mrp_routing -import mrp_workcenter -import mrp_production -import mrp_unbuild -import mrp_workorder -import procurement -import product -import res_company -import stock_move -import stock_picking -import stock_quant -import stock_scrap -import stock_warehouse +from . import ir_attachment +from . import mrp_config_settings +from . import mrp_bom +from . import mrp_message +from . import mrp_routing +from . import mrp_workcenter +from . import mrp_production +from . import mrp_unbuild +from . import mrp_workorder +from . import procurement +from . import product +from . import res_company +from . import stock_move +from . import stock_picking +from . import stock_quant +from . import stock_scrap +from . import stock_warehouse diff --git a/addons/mrp/report/__init__.py b/addons/mrp/report/__init__.py index ecdaf9eb691cd..866d5e524c1bc 100644 --- a/addons/mrp/report/__init__.py +++ b/addons/mrp/report/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import mrp_bom_cost_report -import mrp_bom_structure_report +from . import mrp_bom_cost_report +from . import mrp_bom_structure_report diff --git a/addons/mrp/tests/__init__.py b/addons/mrp/tests/__init__.py index dfa765c7f4966..309b7a797f489 100644 --- a/addons/mrp/tests/__init__.py +++ b/addons/mrp/tests/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -import test_bom -import test_order -import test_stock -import test_workorder_operation -import test_procurement \ No newline at end of file +from . import test_bom +from . import test_order +from . import test_stock +from . import test_workorder_operation +from . import test_procurement \ No newline at end of file diff --git a/addons/mrp/wizard/__init__.py b/addons/mrp/wizard/__init__.py index 50258a9f61f0e..bf91eb292faa8 100644 --- a/addons/mrp/wizard/__init__.py +++ b/addons/mrp/wizard/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import mrp_product_produce -import change_production_qty +from . import mrp_product_produce +from . import change_production_qty diff --git a/addons/mrp_byproduct/__init__.py b/addons/mrp_byproduct/__init__.py index 1331bcbef9225..e7ae8afb15455 100644 --- a/addons/mrp_byproduct/__init__.py +++ b/addons/mrp_byproduct/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import wizard \ No newline at end of file +from . import models +from . import wizard \ No newline at end of file diff --git a/addons/mrp_byproduct/models/__init__.py b/addons/mrp_byproduct/models/__init__.py index f0e3975bc42f1..a35c17d027f36 100644 --- a/addons/mrp_byproduct/models/__init__.py +++ b/addons/mrp_byproduct/models/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import mrp_bom -import mrp_production -import mrp_subproduct -import stock_move \ No newline at end of file +from . import mrp_bom +from . import mrp_production +from . import mrp_subproduct +from . import stock_move \ No newline at end of file diff --git a/addons/mrp_byproduct/tests/__init__.py b/addons/mrp_byproduct/tests/__init__.py index a8755218a1dfc..aa2c86d696e91 100644 --- a/addons/mrp_byproduct/tests/__init__.py +++ b/addons/mrp_byproduct/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_mrp_byproduct +from . import test_mrp_byproduct diff --git a/addons/mrp_byproduct/wizard/__init__.py b/addons/mrp_byproduct/wizard/__init__.py index dd641e61dee89..e6a13ea798747 100644 --- a/addons/mrp_byproduct/wizard/__init__.py +++ b/addons/mrp_byproduct/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import change_production_qty \ No newline at end of file +from . import change_production_qty \ No newline at end of file diff --git a/addons/mrp_repair/__init__.py b/addons/mrp_repair/__init__.py index 11529f98733a4..2ae6446f9dc25 100644 --- a/addons/mrp_repair/__init__.py +++ b/addons/mrp_repair/__init__.py @@ -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 diff --git a/addons/mrp_repair/models/__init__.py b/addons/mrp_repair/models/__init__.py index 6aeed4868c4c7..ee2e2755f8000 100644 --- a/addons/mrp_repair/models/__init__.py +++ b/addons/mrp_repair/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import mrp_repair +from . import mrp_repair diff --git a/addons/mrp_repair/tests/__init__.py b/addons/mrp_repair/tests/__init__.py index 781a58ba67e0d..0d6a3e371eb44 100644 --- a/addons/mrp_repair/tests/__init__.py +++ b/addons/mrp_repair/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_mrp_repair +from . import test_mrp_repair diff --git a/addons/mrp_repair/wizard/__init__.py b/addons/mrp_repair/wizard/__init__.py index 123bdb74bf58e..56aae257ec10e 100644 --- a/addons/mrp_repair/wizard/__init__.py +++ b/addons/mrp_repair/wizard/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import mrp_repair_cancel -import mrp_repair_make_invoice +from . import mrp_repair_cancel +from . import mrp_repair_make_invoice diff --git a/addons/note/__init__.py b/addons/note/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/note/__init__.py +++ b/addons/note/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/note/models/__init__.py b/addons/note/models/__init__.py index b8a4c579959f2..5c651fca9a016 100644 --- a/addons/note/models/__init__.py +++ b/addons/note/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import note -import res_users +from . import note +from . import res_users diff --git a/addons/note_pad/__init__.py b/addons/note_pad/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/note_pad/__init__.py +++ b/addons/note_pad/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/note_pad/models/__init__.py b/addons/note_pad/models/__init__.py index 8afd58169b8e5..266ecc6a7a6a0 100644 --- a/addons/note_pad/models/__init__.py +++ b/addons/note_pad/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import note +from . import note diff --git a/addons/pad/__init__.py b/addons/pad/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/pad/__init__.py +++ b/addons/pad/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/pad/models/__init__.py b/addons/pad/models/__init__.py index 8782ea601402f..8d32f68a65684 100644 --- a/addons/pad/models/__init__.py +++ b/addons/pad/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import pad -import res_company -import res_config +from . import pad +from . import res_company +from . import res_config diff --git a/addons/pad_project/__init__.py b/addons/pad_project/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/pad_project/__init__.py +++ b/addons/pad_project/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/pad_project/models/__init__.py b/addons/pad_project/models/__init__.py index 0243037d31a8a..70a1000c2b402 100644 --- a/addons/pad_project/models/__init__.py +++ b/addons/pad_project/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project_config_settings -import project_task +from . import project_config_settings +from . import project_task diff --git a/addons/payment/__init__.py b/addons/payment/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/payment/__init__.py +++ b/addons/payment/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/payment/models/__init__.py b/addons/payment/models/__init__.py index e5b3f93737c74..3a1c7ce052a4e 100644 --- a/addons/payment/models/__init__.py +++ b/addons/payment/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -import payment_acquirer -import res_partner -import account_payment +from . import payment_acquirer +from . import res_partner +from . import account_payment diff --git a/addons/payment/tests/__init__.py b/addons/payment/tests/__init__.py index 5c193a07c8d91..aa9c3f5d9f0ba 100644 --- a/addons/payment/tests/__init__.py +++ b/addons/payment/tests/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import common +from . import common diff --git a/addons/payment_adyen/__init__.py b/addons/payment_adyen/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/payment_adyen/__init__.py +++ b/addons/payment_adyen/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/payment_adyen/controllers/__init__.py b/addons/payment_adyen/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/payment_adyen/controllers/__init__.py +++ b/addons/payment_adyen/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/payment_adyen/models/__init__.py b/addons/payment_adyen/models/__init__.py index 10b988e0c28b1..ef12533682ff2 100644 --- a/addons/payment_adyen/models/__init__.py +++ b/addons/payment_adyen/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import payment +from . import payment diff --git a/addons/payment_authorize/__init__.py b/addons/payment_authorize/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/payment_authorize/__init__.py +++ b/addons/payment_authorize/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/payment_authorize/controllers/__init__.py b/addons/payment_authorize/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/payment_authorize/controllers/__init__.py +++ b/addons/payment_authorize/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/payment_authorize/models/__init__.py b/addons/payment_authorize/models/__init__.py index 6d0ae2698db0d..01bcbec2ab2a6 100644 --- a/addons/payment_authorize/models/__init__.py +++ b/addons/payment_authorize/models/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import payment +from . import payment diff --git a/addons/payment_authorize/models/payment.py b/addons/payment_authorize/models/payment.py index 4eee88524df53..12f5b353062c1 100644 --- a/addons/payment_authorize/models/payment.py +++ b/addons/payment_authorize/models/payment.py @@ -1,6 +1,6 @@ # coding: utf-8 -from authorize_request import AuthorizeAPI +from .authorize_request import AuthorizeAPI from datetime import datetime import hashlib import hmac diff --git a/addons/payment_buckaroo/__init__.py b/addons/payment_buckaroo/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/payment_buckaroo/__init__.py +++ b/addons/payment_buckaroo/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/payment_buckaroo/controllers/__init__.py b/addons/payment_buckaroo/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/payment_buckaroo/controllers/__init__.py +++ b/addons/payment_buckaroo/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/payment_buckaroo/models/__init__.py b/addons/payment_buckaroo/models/__init__.py index 10b988e0c28b1..ef12533682ff2 100644 --- a/addons/payment_buckaroo/models/__init__.py +++ b/addons/payment_buckaroo/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import payment +from . import payment diff --git a/addons/payment_ogone/__init__.py b/addons/payment_ogone/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/payment_ogone/__init__.py +++ b/addons/payment_ogone/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/payment_ogone/controllers/__init__.py b/addons/payment_ogone/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/payment_ogone/controllers/__init__.py +++ b/addons/payment_ogone/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/payment_ogone/data/__init__.py b/addons/payment_ogone/data/__init__.py index 349d8f668e8c6..f6f4ded2fb1de 100644 --- a/addons/payment_ogone/data/__init__.py +++ b/addons/payment_ogone/data/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import ogone +from . import ogone diff --git a/addons/payment_ogone/models/__init__.py b/addons/payment_ogone/models/__init__.py index 10b988e0c28b1..ef12533682ff2 100644 --- a/addons/payment_ogone/models/__init__.py +++ b/addons/payment_ogone/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import payment +from . import payment diff --git a/addons/payment_paypal/__init__.py b/addons/payment_paypal/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/payment_paypal/__init__.py +++ b/addons/payment_paypal/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/payment_paypal/controllers/__init__.py b/addons/payment_paypal/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/payment_paypal/controllers/__init__.py +++ b/addons/payment_paypal/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/payment_paypal/models/__init__.py b/addons/payment_paypal/models/__init__.py index 10b988e0c28b1..ef12533682ff2 100644 --- a/addons/payment_paypal/models/__init__.py +++ b/addons/payment_paypal/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import payment +from . import payment diff --git a/addons/payment_paypal/tests/__init__.py b/addons/payment_paypal/tests/__init__.py index 5feb98a09c6b5..7048b0a3e3924 100644 --- a/addons/payment_paypal/tests/__init__.py +++ b/addons/payment_paypal/tests/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import test_paypal \ No newline at end of file +from . import test_paypal \ No newline at end of file diff --git a/addons/payment_payumoney/__init__.py b/addons/payment_payumoney/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/payment_payumoney/__init__.py +++ b/addons/payment_payumoney/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/payment_payumoney/controllers/__init__.py b/addons/payment_payumoney/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/payment_payumoney/controllers/__init__.py +++ b/addons/payment_payumoney/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/payment_payumoney/models/__init__.py b/addons/payment_payumoney/models/__init__.py index 8ba584ff3264a..2ec5b9cd2f6fb 100644 --- a/addons/payment_payumoney/models/__init__.py +++ b/addons/payment_payumoney/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import payment +from . import payment diff --git a/addons/payment_sips/__init__.py b/addons/payment_sips/__init__.py index 396c76fe87a0a..f7209b1710021 100644 --- a/addons/payment_sips/__init__.py +++ b/addons/payment_sips/__init__.py @@ -1,2 +1,2 @@ -import models -import controllers +from . import models +from . import controllers diff --git a/addons/payment_sips/controllers/__init__.py b/addons/payment_sips/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/payment_sips/controllers/__init__.py +++ b/addons/payment_sips/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/payment_sips/models/__init__.py b/addons/payment_sips/models/__init__.py index 10b988e0c28b1..ef12533682ff2 100644 --- a/addons/payment_sips/models/__init__.py +++ b/addons/payment_sips/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import payment +from . import payment diff --git a/addons/payment_stripe/__init__.py b/addons/payment_stripe/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/payment_stripe/__init__.py +++ b/addons/payment_stripe/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/payment_stripe/controllers/__init__.py b/addons/payment_stripe/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/payment_stripe/controllers/__init__.py +++ b/addons/payment_stripe/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/payment_stripe/models/__init__.py b/addons/payment_stripe/models/__init__.py index 10b988e0c28b1..ef12533682ff2 100644 --- a/addons/payment_stripe/models/__init__.py +++ b/addons/payment_stripe/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import payment +from . import payment diff --git a/addons/payment_stripe/tests/__init__.py b/addons/payment_stripe/tests/__init__.py index 13c90c428f973..228d5775da525 100644 --- a/addons/payment_stripe/tests/__init__.py +++ b/addons/payment_stripe/tests/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import test_stripe +from . import test_stripe diff --git a/addons/payment_transfer/__init__.py b/addons/payment_transfer/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/payment_transfer/__init__.py +++ b/addons/payment_transfer/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/payment_transfer/controllers/__init__.py b/addons/payment_transfer/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/payment_transfer/controllers/__init__.py +++ b/addons/payment_transfer/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/payment_transfer/models/__init__.py b/addons/payment_transfer/models/__init__.py index 10b988e0c28b1..ef12533682ff2 100644 --- a/addons/payment_transfer/models/__init__.py +++ b/addons/payment_transfer/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import payment +from . import payment diff --git a/addons/point_of_sale/__init__.py b/addons/point_of_sale/__init__.py index ff29fd6422631..ee87c280f2cff 100644 --- a/addons/point_of_sale/__init__.py +++ b/addons/point_of_sale/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers -import report -import wizard +from . import models +from . import controllers +from . import report +from . import wizard diff --git a/addons/point_of_sale/controllers/__init__.py b/addons/point_of_sale/controllers/__init__.py index f97426b5586c0..8fa0f379742f9 100644 --- a/addons/point_of_sale/controllers/__init__.py +++ b/addons/point_of_sale/controllers/__init__.py @@ -1,2 +1,2 @@ -import main -import web_editor +from . import main +from . import web_editor diff --git a/addons/point_of_sale/models/__init__.py b/addons/point_of_sale/models/__init__.py index 7170dbcf350d6..4d04c0f998114 100644 --- a/addons/point_of_sale/models/__init__.py +++ b/addons/point_of_sale/models/__init__.py @@ -1,14 +1,14 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account_bank_statement -import account_journal -import barcode_rule -import pos_category -import pos_config -import pos_order -import pos_session -import product -import res_config -import res_partner -import res_users +from . import account_bank_statement +from . import account_journal +from . import barcode_rule +from . import pos_category +from . import pos_config +from . import pos_order +from . import pos_session +from . import product +from . import res_config +from . import res_partner +from . import res_users diff --git a/addons/point_of_sale/report/__init__.py b/addons/point_of_sale/report/__init__.py index 5537bcb46a25a..ec1d3ae5819c9 100644 --- a/addons/point_of_sale/report/__init__.py +++ b/addons/point_of_sale/report/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import pos_invoice -import pos_order_report +from . import pos_invoice +from . import pos_order_report diff --git a/addons/point_of_sale/tests/__init__.py b/addons/point_of_sale/tests/__init__.py index 2e1ff18338139..8a93c4c44776a 100644 --- a/addons/point_of_sale/tests/__init__.py +++ b/addons/point_of_sale/tests/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_point_of_sale_flow -import test_frontend -import test_point_of_sale_ui +from . import test_point_of_sale_flow +from . import test_frontend +from . import test_point_of_sale_ui diff --git a/addons/point_of_sale/wizard/__init__.py b/addons/point_of_sale/wizard/__init__.py index 442fc2a4133be..5801aa23b377d 100644 --- a/addons/point_of_sale/wizard/__init__.py +++ b/addons/point_of_sale/wizard/__init__.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import pos_box -import pos_details -import pos_discount -import pos_open_statement -import pos_payment +from . import pos_box +from . import pos_details +from . import pos_discount +from . import pos_open_statement +from . import pos_payment diff --git a/addons/pos_cache/__init__.py b/addons/pos_cache/__init__.py index 48f417bbd9320..be9f4fab00ae2 100644 --- a/addons/pos_cache/__init__.py +++ b/addons/pos_cache/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/pos_cache/models/__init__.py b/addons/pos_cache/models/__init__.py index 8c6b3129856ae..b914c8e13e9e7 100644 --- a/addons/pos_cache/models/__init__.py +++ b/addons/pos_cache/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import pos_cache +from . import pos_cache diff --git a/addons/pos_discount/__init__.py b/addons/pos_discount/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/pos_discount/__init__.py +++ b/addons/pos_discount/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/pos_discount/models/__init__.py b/addons/pos_discount/models/__init__.py index c7fdf18c8b764..eaa81f34b8a7f 100644 --- a/addons/pos_discount/models/__init__.py +++ b/addons/pos_discount/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import pos_config +from . import pos_config diff --git a/addons/pos_mercury/__init__.py b/addons/pos_mercury/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/pos_mercury/__init__.py +++ b/addons/pos_mercury/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/pos_mercury/models/__init__.py b/addons/pos_mercury/models/__init__.py index 521e053629a4f..3494c05b9ae52 100644 --- a/addons/pos_mercury/models/__init__.py +++ b/addons/pos_mercury/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import pos_mercury -import pos_mercury_transaction +from . import pos_mercury +from . import pos_mercury_transaction diff --git a/addons/pos_reprint/__init__.py b/addons/pos_reprint/__init__.py index 48f417bbd9320..be9f4fab00ae2 100644 --- a/addons/pos_reprint/__init__.py +++ b/addons/pos_reprint/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/pos_reprint/models/__init__.py b/addons/pos_reprint/models/__init__.py index c7fdf18c8b764..eaa81f34b8a7f 100644 --- a/addons/pos_reprint/models/__init__.py +++ b/addons/pos_reprint/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import pos_config +from . import pos_config diff --git a/addons/pos_restaurant/__init__.py b/addons/pos_restaurant/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/pos_restaurant/__init__.py +++ b/addons/pos_restaurant/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/pos_restaurant/models/__init__.py b/addons/pos_restaurant/models/__init__.py index d6315a0950265..2b2442fbddd14 100644 --- a/addons/pos_restaurant/models/__init__.py +++ b/addons/pos_restaurant/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import pos_config -import pos_order -import pos_restaurant +from . import pos_config +from . import pos_order +from . import pos_restaurant diff --git a/addons/pos_sale/__init__.py b/addons/pos_sale/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/pos_sale/__init__.py +++ b/addons/pos_sale/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/pos_sale/models/__init__.py b/addons/pos_sale/models/__init__.py index 5672dca82f11c..00d1440560aab 100644 --- a/addons/pos_sale/models/__init__.py +++ b/addons/pos_sale/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import pos_config -import crm_team -import pos_session +from . import pos_config +from . import crm_team +from . import pos_session diff --git a/addons/procurement/__init__.py b/addons/procurement/__init__.py index 11529f98733a4..2ae6446f9dc25 100644 --- a/addons/procurement/__init__.py +++ b/addons/procurement/__init__.py @@ -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 diff --git a/addons/procurement/models/__init__.py b/addons/procurement/models/__init__.py index f4fe29f79ed61..cdc259549f6ec 100644 --- a/addons/procurement/models/__init__.py +++ b/addons/procurement/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import procurement +from . import procurement diff --git a/addons/procurement/tests/__init__.py b/addons/procurement/tests/__init__.py index 0c6d1e1cb094f..a793cffcc248f 100644 --- a/addons/procurement/tests/__init__.py +++ b/addons/procurement/tests/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import test_procurement +from . import test_procurement diff --git a/addons/procurement/wizard/__init__.py b/addons/procurement/wizard/__init__.py index 9692dc59e8589..4b7b786fc5353 100644 --- a/addons/procurement/wizard/__init__.py +++ b/addons/procurement/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import procurement_order_compute_all +from . import procurement_order_compute_all diff --git a/addons/procurement_jit/__init__.py b/addons/procurement_jit/__init__.py index 1047b552da3a4..216835128a08c 100644 --- a/addons/procurement_jit/__init__.py +++ b/addons/procurement_jit/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale +from . import sale diff --git a/addons/product/__init__.py b/addons/product/__init__.py index d84fb182e8f20..de3c67453a778 100644 --- a/addons/product/__init__.py +++ b/addons/product/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import report -import wizard +from . import models +from . import report +from . import wizard diff --git a/addons/product/models/__init__.py b/addons/product/models/__init__.py index 6944483e9ed4b..2caa030a81ab9 100644 --- a/addons/product/models/__init__.py +++ b/addons/product/models/__init__.py @@ -3,16 +3,16 @@ # flake8: noqa: F401 -import base_config_settings -import decimal_precision +from . import base_config_settings +from . import decimal_precision # don't try to be a good boy and sort imports alphabetically. # `product.template` should be initialised before `product.product` -import product_template -import product +from . import product_template +from . import product -import product_attribute -import product_pricelist -import product_uom -import res_company -import res_partner +from . import product_attribute +from . import product_pricelist +from . import product_uom +from . import res_company +from . import res_partner diff --git a/addons/product/report/__init__.py b/addons/product/report/__init__.py index ce41c04a64623..84e96d32c2383 100644 --- a/addons/product/report/__init__.py +++ b/addons/product/report/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import product_pricelist +from . import product_pricelist diff --git a/addons/product/wizard/__init__.py b/addons/product/wizard/__init__.py index 117588e56e29b..0e9e331843999 100644 --- a/addons/product/wizard/__init__.py +++ b/addons/product/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import product_price_list +from . import product_price_list diff --git a/addons/product_email_template/__init__.py b/addons/product_email_template/__init__.py index c7b5ac7e1f216..cde864bae21a1 100644 --- a/addons/product_email_template/__init__.py +++ b/addons/product_email_template/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import models +from . import models diff --git a/addons/product_email_template/models/__init__.py b/addons/product_email_template/models/__init__.py index 5067404a32c22..2962f90f02eb6 100644 --- a/addons/product_email_template/models/__init__.py +++ b/addons/product_email_template/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -import product -import account_invoice \ No newline at end of file +from . import product +from . import account_invoice \ No newline at end of file diff --git a/addons/product_expiry/__init__.py b/addons/product_expiry/__init__.py index 1c726f4f08f75..d6210b1285d37 100644 --- a/addons/product_expiry/__init__.py +++ b/addons/product_expiry/__init__.py @@ -1,3 +1,3 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/product_expiry/models/__init__.py b/addons/product_expiry/models/__init__.py index e12dbbbfcc386..47544a5eeb1c4 100644 --- a/addons/product_expiry/models/__init__.py +++ b/addons/product_expiry/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import production_lot -import product_product -import stock_quant +from . import production_lot +from . import product_product +from . import stock_quant diff --git a/addons/product_extended/__init__.py b/addons/product_extended/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/product_extended/__init__.py +++ b/addons/product_extended/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/product_extended/models/__init__.py b/addons/product_extended/models/__init__.py index 57a84caa05c25..06ab2512b726b 100644 --- a/addons/product_extended/models/__init__.py +++ b/addons/product_extended/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import product \ No newline at end of file +from . import product \ No newline at end of file diff --git a/addons/product_margin/__init__.py b/addons/product_margin/__init__.py index 8264f45211ecd..b6f074333803d 100644 --- a/addons/product_margin/__init__.py +++ b/addons/product_margin/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import wizard -import models +from . import wizard +from . import models diff --git a/addons/product_margin/models/__init__.py b/addons/product_margin/models/__init__.py index 521f6cbe85d68..4bd5f3c3d8c0e 100644 --- a/addons/product_margin/models/__init__.py +++ b/addons/product_margin/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import product_product \ No newline at end of file +from . import product_product \ No newline at end of file diff --git a/addons/product_margin/wizard/__init__.py b/addons/product_margin/wizard/__init__.py index 38a55c3c01347..2bbaa5a97aa5f 100644 --- a/addons/product_margin/wizard/__init__.py +++ b/addons/product_margin/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import product_margin +from . import product_margin diff --git a/addons/project/__init__.py b/addons/project/__init__.py index d909ba9d61de9..0c023b8d77a04 100644 --- a/addons/project/__init__.py +++ b/addons/project/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import report -import wizard \ No newline at end of file +from . import models +from . import report +from . import wizard \ No newline at end of file diff --git a/addons/project/models/__init__.py b/addons/project/models/__init__.py index 04eb14303cb3a..a8a24d472c244 100644 --- a/addons/project/models/__init__.py +++ b/addons/project/models/__init__.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project -import res_company -import res_partner -import res_config -import web_planner +from . import project +from . import res_company +from . import res_partner +from . import res_config +from . import web_planner diff --git a/addons/project/report/__init__.py b/addons/project/report/__init__.py index 8d6f32042954f..3079695339de5 100644 --- a/addons/project/report/__init__.py +++ b/addons/project/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project_report +from . import project_report diff --git a/addons/project/wizard/__init__.py b/addons/project/wizard/__init__.py index 70db3b0ade0d1..8b4d658a816d8 100644 --- a/addons/project/wizard/__init__.py +++ b/addons/project/wizard/__init__.py @@ -2,4 +2,4 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project_task_merge_wizard +from . import project_task_merge_wizard diff --git a/addons/project_issue/__init__.py b/addons/project_issue/__init__.py index a5f67aebd79ab..2609681a9385b 100644 --- a/addons/project_issue/__init__.py +++ b/addons/project_issue/__init__.py @@ -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 diff --git a/addons/project_issue/models/__init__.py b/addons/project_issue/models/__init__.py index 96cee86e356b6..3a4e6c286d8cb 100644 --- a/addons/project_issue/models/__init__.py +++ b/addons/project_issue/models/__init__.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project_issue -import account_analytic_account -import project_project -import project_task_type -import res_partner -import project_issue_config_settings +from . import project_issue +from . import account_analytic_account +from . import project_project +from . import project_task_type +from . import res_partner +from . import project_issue_config_settings diff --git a/addons/project_issue/report/__init__.py b/addons/project_issue/report/__init__.py index 912b24c39601e..e76831f6b5631 100644 --- a/addons/project_issue/report/__init__.py +++ b/addons/project_issue/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project_issue_report +from . import project_issue_report diff --git a/addons/project_issue/tests/__init__.py b/addons/project_issue/tests/__init__.py index 423b64bf97190..5a92466cd8ca7 100644 --- a/addons/project_issue/tests/__init__.py +++ b/addons/project_issue/tests/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_subscribe_issue -import test_issue_process -import test_issue_demo +from . import test_subscribe_issue +from . import test_issue_process +from . import test_issue_demo diff --git a/addons/project_issue_sheet/__init__.py b/addons/project_issue_sheet/__init__.py index 2b6fd3008e4dd..8134f974fbfb9 100644 --- a/addons/project_issue_sheet/__init__.py +++ b/addons/project_issue_sheet/__init__.py @@ -1,4 +1,4 @@ # -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/project_issue_sheet/models/__init__.py b/addons/project_issue_sheet/models/__init__.py index 254e6f68d27ad..a2ea953f8da17 100644 --- a/addons/project_issue_sheet/models/__init__.py +++ b/addons/project_issue_sheet/models/__init__.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project_issue -import account_analytic_line +from . import project_issue +from . import account_analytic_line diff --git a/addons/purchase/__init__.py b/addons/purchase/__init__.py index a5f67aebd79ab..2609681a9385b 100644 --- a/addons/purchase/__init__.py +++ b/addons/purchase/__init__.py @@ -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 diff --git a/addons/purchase/models/__init__.py b/addons/purchase/models/__init__.py index 6402c67a0cd1f..91e0b0ba49218 100644 --- a/addons/purchase/models/__init__.py +++ b/addons/purchase/models/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account_invoice -import purchase -import stock_config_settings -import res_company -import res_config -import res_partner -import stock +from . import account_invoice +from . import purchase +from . import stock_config_settings +from . import res_company +from . import res_config +from . import res_partner +from . import stock diff --git a/addons/purchase/report/__init__.py b/addons/purchase/report/__init__.py index 5a78b379c7b10..b8436ab280e1c 100644 --- a/addons/purchase/report/__init__.py +++ b/addons/purchase/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import purchase_report +from . import purchase_report diff --git a/addons/purchase/tests/__init__.py b/addons/purchase/tests/__init__.py index 17bb0c914425d..924cfc8c8238d 100644 --- a/addons/purchase/tests/__init__.py +++ b/addons/purchase/tests/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_onchange_product_id -import test_purchase_order -import test_create_picking -import test_purchase_lead_time +from . import test_onchange_product_id +from . import test_purchase_order +from . import test_create_picking +from . import test_purchase_lead_time diff --git a/addons/purchase_mrp/__init__.py b/addons/purchase_mrp/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/purchase_mrp/__init__.py +++ b/addons/purchase_mrp/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/purchase_mrp/models/__init__.py b/addons/purchase_mrp/models/__init__.py index c4241bfc1f1b8..6b81dc1791bda 100644 --- a/addons/purchase_mrp/models/__init__.py +++ b/addons/purchase_mrp/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import purchase_mrp \ No newline at end of file +from . import purchase_mrp \ No newline at end of file diff --git a/addons/purchase_requisition/__init__.py b/addons/purchase_requisition/__init__.py index 1c726f4f08f75..d6210b1285d37 100644 --- a/addons/purchase_requisition/__init__.py +++ b/addons/purchase_requisition/__init__.py @@ -1,3 +1,3 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/purchase_requisition/models/__init__.py b/addons/purchase_requisition/models/__init__.py index 5dc71cd70fe89..028784383c7a6 100644 --- a/addons/purchase_requisition/models/__init__.py +++ b/addons/purchase_requisition/models/__init__.py @@ -1,3 +1,3 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -import purchase_requisition +from . import purchase_requisition diff --git a/addons/purchase_requisition/tests/__init__.py b/addons/purchase_requisition/tests/__init__.py index 16b59be021170..bcd6590145c12 100644 --- a/addons/purchase_requisition/tests/__init__.py +++ b/addons/purchase_requisition/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_purchase_requisition +from . import test_purchase_requisition diff --git a/addons/rating/__init__.py b/addons/rating/__init__.py index 6d086b5faeb6f..0539a3a9d2e45 100644 --- a/addons/rating/__init__.py +++ b/addons/rating/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/rating/controllers/__init__.py b/addons/rating/controllers/__init__.py index a84d81a791b1a..757b12a1f1758 100644 --- a/addons/rating/controllers/__init__.py +++ b/addons/rating/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/rating/models/__init__.py b/addons/rating/models/__init__.py index dacaf2fffbe73..27f56b84f11f7 100644 --- a/addons/rating/models/__init__.py +++ b/addons/rating/models/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import rating +from . import rating diff --git a/addons/rating_project/__init__.py b/addons/rating_project/__init__.py index 48f417bbd9320..be9f4fab00ae2 100644 --- a/addons/rating_project/__init__.py +++ b/addons/rating_project/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/rating_project/models/__init__.py b/addons/rating_project/models/__init__.py index 6102f6fb80f43..fd49e08c0b96c 100644 --- a/addons/rating_project/models/__init__.py +++ b/addons/rating_project/models/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import project +from . import project diff --git a/addons/rating_project_issue/__init__.py b/addons/rating_project_issue/__init__.py index 48f417bbd9320..be9f4fab00ae2 100644 --- a/addons/rating_project_issue/__init__.py +++ b/addons/rating_project_issue/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/rating_project_issue/models/__init__.py b/addons/rating_project_issue/models/__init__.py index 7cdce9b1c8bff..a1a0a8585022c 100644 --- a/addons/rating_project_issue/models/__init__.py +++ b/addons/rating_project_issue/models/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import project_issue +from . import project_issue diff --git a/addons/report/__init__.py b/addons/report/__init__.py index d8b1dcd941312..5a31f331a2a95 100644 --- a/addons/report/__init__.py +++ b/addons/report/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers -import models -import tests +from . import controllers +from . import models +from . import tests diff --git a/addons/report/controllers/__init__.py b/addons/report/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/report/controllers/__init__.py +++ b/addons/report/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/report/models/__init__.py b/addons/report/models/__init__.py index 9302433983332..c983832539e0f 100644 --- a/addons/report/models/__init__.py +++ b/addons/report/models/__init__.py @@ -1,11 +1,11 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import abstract_report -import base_config_settings -import ir_actions_report_xml -import ir_http -import ir_qweb -import report -import report_paperformat -import res_company +from . import abstract_report +from . import base_config_settings +from . import ir_actions_report_xml +from . import ir_http +from . import ir_qweb +from . import report +from . import report_paperformat +from . import res_company diff --git a/addons/report/tests/__init__.py b/addons/report/tests/__init__.py index fc192463ec600..78f88cfa545a2 100644 --- a/addons/report/tests/__init__.py +++ b/addons/report/tests/__init__.py @@ -1 +1 @@ -import test_reports +from . import test_reports diff --git a/addons/report_intrastat/__init__.py b/addons/report_intrastat/__init__.py index c2abfbdfea892..0bedb4deb0999 100644 --- a/addons/report_intrastat/__init__.py +++ b/addons/report_intrastat/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import report \ No newline at end of file +from . import models +from . import report \ No newline at end of file diff --git a/addons/report_intrastat/models/__init__.py b/addons/report_intrastat/models/__init__.py index c19bfaae61f7f..e2b19a53fb583 100644 --- a/addons/report_intrastat/models/__init__.py +++ b/addons/report_intrastat/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import report_intrastat \ No newline at end of file +from . import report_intrastat \ No newline at end of file diff --git a/addons/report_intrastat/report/__init__.py b/addons/report_intrastat/report/__init__.py index 85ca75b5d4cb4..0b18d6a6be30d 100644 --- a/addons/report_intrastat/report/__init__.py +++ b/addons/report_intrastat/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import report_intrastat_report +from . import report_intrastat_report diff --git a/addons/report_intrastat/tests/__init__.py b/addons/report_intrastat/tests/__init__.py index 467c15e9fb755..094503fea5f5f 100644 --- a/addons/report_intrastat/tests/__init__.py +++ b/addons/report_intrastat/tests/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import test_report_intrastat +from . import test_report_intrastat diff --git a/addons/resource/__init__.py b/addons/resource/__init__.py index ed17ad09e6250..23a96e9133a40 100644 --- a/addons/resource/__init__.py +++ b/addons/resource/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import tests.test_resource_model +from . import models +from .tests import test_resource_model diff --git a/addons/resource/models/__init__.py b/addons/resource/models/__init__.py index 9d226347a0002..9307fba8e8ad9 100644 --- a/addons/resource/models/__init__.py +++ b/addons/resource/models/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import resource -import resource_mixin -import res_company -import res_users \ No newline at end of file +from . import resource +from . import resource_mixin +from . import res_company +from . import res_users diff --git a/addons/sale/__init__.py b/addons/sale/__init__.py index d84fb182e8f20..de3c67453a778 100644 --- a/addons/sale/__init__.py +++ b/addons/sale/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import report -import wizard +from . import models +from . import report +from . import wizard diff --git a/addons/sale/models/__init__.py b/addons/sale/models/__init__.py index 9d838b14bb43a..72ef1e44f9ea2 100644 --- a/addons/sale/models/__init__.py +++ b/addons/sale/models/__init__.py @@ -1,15 +1,15 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account_invoice -import procurement_order -import product_pricelist -import product_product -import product_template -import res_company -import res_partner -import sale -import sale_analytic -import sale_config_settings -import sale_layout -import sales_team \ No newline at end of file +from . import account_invoice +from . import procurement_order +from . import product_pricelist +from . import product_product +from . import product_template +from . import res_company +from . import res_partner +from . import sale +from . import sale_analytic +from . import sale_config_settings +from . import sale_layout +from . import sales_team \ No newline at end of file diff --git a/addons/sale/report/__init__.py b/addons/sale/report/__init__.py index 85c3c3a0c8903..881c37f9e16e0 100644 --- a/addons/sale/report/__init__.py +++ b/addons/sale/report/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale_report -import invoice_report +from . import sale_report +from . import invoice_report diff --git a/addons/sale/tests/__init__.py b/addons/sale/tests/__init__.py index 6d02f09727cb1..c37b8ebd5a033 100644 --- a/addons/sale/tests/__init__.py +++ b/addons/sale/tests/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_sale_to_invoice -import test_sale_order +from . import test_sale_to_invoice +from . import test_sale_order from . import test_product_id_change -import test_sale_ui +from . import test_sale_ui diff --git a/addons/sale/tests/test_sale_order.py b/addons/sale/tests/test_sale_order.py index 64805ca5b7e28..4e3cbabc9fb00 100644 --- a/addons/sale/tests/test_sale_order.py +++ b/addons/sale/tests/test_sale_order.py @@ -3,7 +3,7 @@ from odoo.exceptions import UserError, AccessError -from test_sale_common import TestSale +from .test_sale_common import TestSale class TestSaleOrder(TestSale): diff --git a/addons/sale/wizard/__init__.py b/addons/sale/wizard/__init__.py index 926a3a55b06e1..5d8b76139cb32 100644 --- a/addons/sale/wizard/__init__.py +++ b/addons/sale/wizard/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale_make_invoice_advance -import mail_compose_message \ No newline at end of file +from . import sale_make_invoice_advance +from . import mail_compose_message \ No newline at end of file diff --git a/addons/sale_crm/__init__.py b/addons/sale_crm/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/sale_crm/__init__.py +++ b/addons/sale_crm/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/sale_crm/models/__init__.py b/addons/sale_crm/models/__init__.py index 83ad553e3f674..0317332dce183 100644 --- a/addons/sale_crm/models/__init__.py +++ b/addons/sale_crm/models/__init__.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account_invoice -import crm_lead -import crm_team -import res_users -import sale_order +from . import account_invoice +from . import crm_lead +from . import crm_team +from . import res_users +from . import sale_order diff --git a/addons/sale_expense/tests/__init__.py b/addons/sale_expense/tests/__init__.py index 2ceb1c00c6559..20cd548feaea1 100644 --- a/addons/sale_expense/tests/__init__.py +++ b/addons/sale_expense/tests/__init__.py @@ -1 +1 @@ -import test_sale_expense +from . import test_sale_expense diff --git a/addons/sale_margin/__init__.py b/addons/sale_margin/__init__.py index d1b51ace91dc7..d5ad64788439c 100644 --- a/addons/sale_margin/__init__.py +++ b/addons/sale_margin/__init__.py @@ -5,8 +5,8 @@ import openerp from openerp import api, SUPERUSER_ID -import models # noqa -import report # noqa +from . import models # noqa +from . import report # noqa def uninstall_hook(cr, registry): diff --git a/addons/sale_margin/models/__init__.py b/addons/sale_margin/models/__init__.py index 76bcb3512a18c..00b62d54b4acb 100644 --- a/addons/sale_margin/models/__init__.py +++ b/addons/sale_margin/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale_order +from . import sale_order diff --git a/addons/sale_margin/report/__init__.py b/addons/sale_margin/report/__init__.py index 894dd3f737bf3..7b0761d51994a 100644 --- a/addons/sale_margin/report/__init__.py +++ b/addons/sale_margin/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale_report +from . import sale_report diff --git a/addons/sale_mrp/__init__.py b/addons/sale_mrp/__init__.py index adc1a9aee5e79..eb7b66b4c4b65 100644 --- a/addons/sale_mrp/__init__.py +++ b/addons/sale_mrp/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale_mrp -import models +from . import sale_mrp +from . import models diff --git a/addons/sale_mrp/models/__init__.py b/addons/sale_mrp/models/__init__.py index b0f44e7d51199..c9f7c35fe54d6 100644 --- a/addons/sale_mrp/models/__init__.py +++ b/addons/sale_mrp/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import procurement \ No newline at end of file +from . import procurement \ No newline at end of file diff --git a/addons/sale_mrp/tests/__init__.py b/addons/sale_mrp/tests/__init__.py index 2ad7059f09fc5..7ab4d8437449f 100644 --- a/addons/sale_mrp/tests/__init__.py +++ b/addons/sale_mrp/tests/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_move_explode -import test_sale_mrp_flow -import test_sale_mrp_lead_time +from . import test_move_explode +from . import test_sale_mrp_flow +from . import test_sale_mrp_lead_time diff --git a/addons/sale_order_dates/__init__.py b/addons/sale_order_dates/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/sale_order_dates/__init__.py +++ b/addons/sale_order_dates/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/sale_order_dates/models/__init__.py b/addons/sale_order_dates/models/__init__.py index 76bcb3512a18c..00b62d54b4acb 100644 --- a/addons/sale_order_dates/models/__init__.py +++ b/addons/sale_order_dates/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale_order +from . import sale_order diff --git a/addons/sale_order_dates/tests/__init__.py b/addons/sale_order_dates/tests/__init__.py index 2934ff117f6fd..9df19b529fdf3 100644 --- a/addons/sale_order_dates/tests/__init__.py +++ b/addons/sale_order_dates/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_requested_date +from . import test_requested_date diff --git a/addons/sale_service_rating/__init__.py b/addons/sale_service_rating/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/sale_service_rating/__init__.py +++ b/addons/sale_service_rating/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/sale_service_rating/models/__init__.py b/addons/sale_service_rating/models/__init__.py index f08438b04dcc0..527e2954c0683 100644 --- a/addons/sale_service_rating/models/__init__.py +++ b/addons/sale_service_rating/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project +from . import project diff --git a/addons/sale_stock/report/__init__.py b/addons/sale_stock/report/__init__.py index 894dd3f737bf3..7b0761d51994a 100644 --- a/addons/sale_stock/report/__init__.py +++ b/addons/sale_stock/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale_report +from . import sale_report diff --git a/addons/sale_stock/tests/__init__.py b/addons/sale_stock/tests/__init__.py index a78b765f5f607..9660081dbd5cc 100644 --- a/addons/sale_stock/tests/__init__.py +++ b/addons/sale_stock/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_sale_stock -import test_sale_stock_lead_time +from . import test_sale_stock +from . import test_sale_stock_lead_time diff --git a/addons/sale_timesheet/__init__.py b/addons/sale_timesheet/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/sale_timesheet/__init__.py +++ b/addons/sale_timesheet/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/sale_timesheet/models/__init__.py b/addons/sale_timesheet/models/__init__.py index 587b31b82023e..de19de2fbafce 100644 --- a/addons/sale_timesheet/models/__init__.py +++ b/addons/sale_timesheet/models/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account -import hr -import procurement -import product -import project -import res_company -import sale_order +from . import account +from . import hr +from . import procurement +from . import product +from . import project +from . import res_company +from . import sale_order diff --git a/addons/sale_timesheet/tests/__init__.py b/addons/sale_timesheet/tests/__init__.py index b03ceb19f2b1a..ae48badd8a296 100644 --- a/addons/sale_timesheet/tests/__init__.py +++ b/addons/sale_timesheet/tests/__init__.py @@ -1,2 +1,2 @@ -import test_sale_timesheet -import test_sale_service +from . import test_sale_timesheet +from . import test_sale_service diff --git a/addons/sales_team/__init__.py b/addons/sales_team/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/sales_team/__init__.py +++ b/addons/sales_team/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/sales_team/models/__init__.py b/addons/sales_team/models/__init__.py index e6ca425ef6231..57f64bcc3e428 100644 --- a/addons/sales_team/models/__init__.py +++ b/addons/sales_team/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import crm_team -import res_partner -import res_users -import res_config +from . import crm_team +from . import res_partner +from . import res_users +from . import res_config diff --git a/addons/stock/__init__.py b/addons/stock/__init__.py index ddac13e1a0ec7..7039d459cb82c 100644 --- a/addons/stock/__init__.py +++ b/addons/stock/__init__.py @@ -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 \ No newline at end of file +from . import controllers +from . import models +from . import report +from . import wizard \ No newline at end of file diff --git a/addons/stock/controllers/__init__.py b/addons/stock/controllers/__init__.py index 039d9715fabbd..deec4a8b86d2c 100644 --- a/addons/stock/controllers/__init__.py +++ b/addons/stock/controllers/__init__.py @@ -1 +1 @@ -import main \ No newline at end of file +from . import main \ No newline at end of file diff --git a/addons/stock/models/__init__.py b/addons/stock/models/__init__.py index 698751bafb545..bb2733ff712e5 100644 --- a/addons/stock/models/__init__.py +++ b/addons/stock/models/__init__.py @@ -1,21 +1,21 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import barcode -import product -import procurement -import product_strategy -import res_company -import res_partner -import stock_config_settings -import stock_incoterms -import stock_inventory -import stock_location -import stock_move -import stock_pack_operation -import stock_production_lot -import stock_picking -import stock_quant -import stock_warehouse -import stock_scrap -import web_planner +from . import barcode +from . import product +from . import procurement +from . import product_strategy +from . import res_company +from . import res_partner +from . import stock_config_settings +from . import stock_incoterms +from . import stock_inventory +from . import stock_location +from . import stock_move +from . import stock_pack_operation +from . import stock_production_lot +from . import stock_picking +from . import stock_quant +from . import stock_warehouse +from . import stock_scrap +from . import web_planner diff --git a/addons/stock/report/__init__.py b/addons/stock/report/__init__.py index 71320742c7b14..a8131e94c8c4d 100644 --- a/addons/stock/report/__init__.py +++ b/addons/stock/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import report_stock_forecast +from . import report_stock_forecast diff --git a/addons/stock/tests/__init__.py b/addons/stock/tests/__init__.py index bbc9cde189ee9..1878c99baac84 100644 --- a/addons/stock/tests/__init__.py +++ b/addons/stock/tests/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- from . import test_stock_flow -import test_product -import test_warehouse -import test_shipment +from . import test_product +from . import test_warehouse +from . import test_shipment diff --git a/addons/stock/wizard/__init__.py b/addons/stock/wizard/__init__.py index 8575b64857c4b..d176757a45b95 100644 --- a/addons/stock/wizard/__init__.py +++ b/addons/stock/wizard/__init__.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import stock_picking_return -import stock_change_product_qty -import make_procurement -import procurement_orderpoint_compute -import stock_immediate_transfer -import stock_backorder_confirmation \ No newline at end of file +from . import stock_picking_return +from . import stock_change_product_qty +from . import make_procurement +from . import procurement_orderpoint_compute +from . import stock_immediate_transfer +from . import stock_backorder_confirmation \ No newline at end of file diff --git a/addons/stock_account/__init__.py b/addons/stock_account/__init__.py index d84fb182e8f20..de3c67453a778 100644 --- a/addons/stock_account/__init__.py +++ b/addons/stock_account/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import report -import wizard +from . import models +from . import report +from . import wizard diff --git a/addons/stock_account/models/__init__.py b/addons/stock_account/models/__init__.py index 7564d3b99c915..21bf84ae9b2cb 100644 --- a/addons/stock_account/models/__init__.py +++ b/addons/stock_account/models/__init__.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account_chart_template -import account_invoice -import product -import stock -import stock_config_settings +from . import account_chart_template +from . import account_invoice +from . import product +from . import stock +from . import stock_config_settings diff --git a/addons/stock_account/report/__init__.py b/addons/stock_account/report/__init__.py index 6435c7f35ed01..45c231e2efe7e 100644 --- a/addons/stock_account/report/__init__.py +++ b/addons/stock_account/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import stock_history +from . import stock_history diff --git a/addons/stock_account/wizard/__init__.py b/addons/stock_account/wizard/__init__.py index 81b976cd81288..bef8d18b84e65 100644 --- a/addons/stock_account/wizard/__init__.py +++ b/addons/stock_account/wizard/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import stock_change_standard_price -import wizard_valuation_history +from . import stock_change_standard_price +from . import wizard_valuation_history diff --git a/addons/stock_calendar/__init__.py b/addons/stock_calendar/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/stock_calendar/__init__.py +++ b/addons/stock_calendar/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/stock_calendar/models/__init__.py b/addons/stock_calendar/models/__init__.py index 03dad68743399..e2aa01269e362 100644 --- a/addons/stock_calendar/models/__init__.py +++ b/addons/stock_calendar/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import procurement -import resource -import stock +from . import procurement +from . import resource +from . import stock diff --git a/addons/stock_landed_costs/__init__.py b/addons/stock_landed_costs/__init__.py index 0d10f2e654980..e9917144f69fe 100644 --- a/addons/stock_landed_costs/__init__.py +++ b/addons/stock_landed_costs/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models \ No newline at end of file +from . import models \ No newline at end of file diff --git a/addons/stock_landed_costs/models/__init__.py b/addons/stock_landed_costs/models/__init__.py index 3db0d03ee3fbe..15a94628e98ca 100644 --- a/addons/stock_landed_costs/models/__init__.py +++ b/addons/stock_landed_costs/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import product -import stock_landed_cost +from . import product +from . import stock_landed_cost diff --git a/addons/stock_picking_wave/__init__.py b/addons/stock_picking_wave/__init__.py index 11529f98733a4..2ae6446f9dc25 100644 --- a/addons/stock_picking_wave/__init__.py +++ b/addons/stock_picking_wave/__init__.py @@ -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 diff --git a/addons/stock_picking_wave/models/__init__.py b/addons/stock_picking_wave/models/__init__.py index 997875f468430..cfd8cec597b21 100644 --- a/addons/stock_picking_wave/models/__init__.py +++ b/addons/stock_picking_wave/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import stock_picking_wave +from . import stock_picking_wave diff --git a/addons/stock_picking_wave/wizard/__init__.py b/addons/stock_picking_wave/wizard/__init__.py index 4ac2729d320cd..afd96c47267c1 100644 --- a/addons/stock_picking_wave/wizard/__init__.py +++ b/addons/stock_picking_wave/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import stock_picking_to_wave +from . import stock_picking_to_wave diff --git a/addons/survey/__init__.py b/addons/survey/__init__.py index 4b19b6b7cd212..c158f87e14f6a 100644 --- a/addons/survey/__init__.py +++ b/addons/survey/__init__.py @@ -1,7 +1,6 @@ # -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers -import models -import wizard -import tests +from . import controllers +from . import models +from . import wizard diff --git a/addons/survey/controllers/__init__.py b/addons/survey/controllers/__init__.py index 83da412ede8c6..e425c18c14ba7 100644 --- a/addons/survey/controllers/__init__.py +++ b/addons/survey/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/survey/models/__init__.py b/addons/survey/models/__init__.py index 4a40a7d2ae086..26edfafe8ad54 100644 --- a/addons/survey/models/__init__.py +++ b/addons/survey/models/__init__.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import survey -import ir_autovacuum +from . import survey +from . import ir_autovacuum diff --git a/addons/survey/tests/__init__.py b/addons/survey/tests/__init__.py index 852d49d2a7410..12f614f03bcc3 100644 --- a/addons/survey/tests/__init__.py +++ b/addons/survey/tests/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_survey -import test_survey_ui +from . import test_survey +from . import test_survey_ui diff --git a/addons/survey/wizard/__init__.py b/addons/survey/wizard/__init__.py index 27a84ed3102a0..4b35429344733 100644 --- a/addons/survey/wizard/__init__.py +++ b/addons/survey/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import survey_email_compose_message +from . import survey_email_compose_message diff --git a/addons/survey_crm/__init__.py b/addons/survey_crm/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/survey_crm/__init__.py +++ b/addons/survey_crm/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/survey_crm/models/__init__.py b/addons/survey_crm/models/__init__.py index 0a274c37955d1..161185206bf46 100644 --- a/addons/survey_crm/models/__init__.py +++ b/addons/survey_crm/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import survey +from . import survey diff --git a/addons/utm/__init__.py b/addons/utm/__init__.py index 89d26e2f59742..a0fdc10fe11b9 100644 --- a/addons/utm/__init__.py +++ b/addons/utm/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import models +from . import models diff --git a/addons/utm/models/__init__.py b/addons/utm/models/__init__.py index 2510ec1c80306..faef4eabef7a0 100644 --- a/addons/utm/models/__init__.py +++ b/addons/utm/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import utm -import ir_http +from . import utm +from . import ir_http diff --git a/addons/web/__init__.py b/addons/web/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/web/__init__.py +++ b/addons/web/__init__.py @@ -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 diff --git a/addons/web/models/__init__.py b/addons/web/models/__init__.py index 983d5aec78875..75127bbcbc3a2 100644 --- a/addons/web/models/__init__.py +++ b/addons/web/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ir_http +from . import ir_http diff --git a/addons/web/tests/__init__.py b/addons/web/tests/__init__.py index 704bbe5696f76..582c61fcaefc8 100644 --- a/addons/web/tests/__init__.py +++ b/addons/web/tests/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_js -import test_menu -import test_serving_base +from . import test_js +from . import test_menu +from . import test_serving_base diff --git a/addons/web_editor/__init__.py b/addons/web_editor/__init__.py index d8b1dcd941312..7d34c7c054abd 100644 --- a/addons/web_editor/__init__.py +++ b/addons/web_editor/__init__.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers -import models -import tests +from . import controllers +from . import models diff --git a/addons/web_editor/controllers/__init__.py b/addons/web_editor/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/web_editor/controllers/__init__.py +++ b/addons/web_editor/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/web_editor/models/__init__.py b/addons/web_editor/models/__init__.py index feae3b9039454..b895b36ca545b 100644 --- a/addons/web_editor/models/__init__.py +++ b/addons/web_editor/models/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ir_attachment -import ir_qweb -import ir_ui_view -import ir_http -import ir_translation +from . import ir_attachment +from . import ir_qweb +from . import ir_ui_view +from . import ir_http +from . import ir_translation -import test_models +from . import test_models diff --git a/addons/web_editor/tests/__init__.py b/addons/web_editor/tests/__init__.py index 38349dc449434..b531e18c9188f 100644 --- a/addons/web_editor/tests/__init__.py +++ b/addons/web_editor/tests/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_ui -import test_converter +from . import test_ui +from . import test_converter diff --git a/addons/web_planner/__init__.py b/addons/web_planner/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/web_planner/__init__.py +++ b/addons/web_planner/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/web_planner/models/__init__.py b/addons/web_planner/models/__init__.py index 6ee384e9eb8be..3e445787e650a 100644 --- a/addons/web_planner/models/__init__.py +++ b/addons/web_planner/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import web_planner +from . import web_planner diff --git a/addons/web_settings_dashboard/__init__.py b/addons/web_settings_dashboard/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/web_settings_dashboard/__init__.py +++ b/addons/web_settings_dashboard/__init__.py @@ -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 diff --git a/addons/web_settings_dashboard/controllers/__init__.py b/addons/web_settings_dashboard/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/web_settings_dashboard/controllers/__init__.py +++ b/addons/web_settings_dashboard/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/web_settings_dashboard/models/__init__.py b/addons/web_settings_dashboard/models/__init__.py index 79656a7fe10a9..74f3017f7e64b 100644 --- a/addons/web_settings_dashboard/models/__init__.py +++ b/addons/web_settings_dashboard/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import res_users +from . import res_users diff --git a/addons/web_tour/__init__.py b/addons/web_tour/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/web_tour/__init__.py +++ b/addons/web_tour/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/web_tour/models/__init__.py b/addons/web_tour/models/__init__.py index 9d82e7c6391e7..0b9e41054afad 100644 --- a/addons/web_tour/models/__init__.py +++ b/addons/web_tour/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ir_http -import ir_ui_menu -import tour +from . import ir_http +from . import ir_ui_menu +from . import tour diff --git a/addons/website/__init__.py b/addons/website/__init__.py index 4b19b6b7cd212..c158f87e14f6a 100644 --- a/addons/website/__init__.py +++ b/addons/website/__init__.py @@ -1,7 +1,6 @@ # -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers -import models -import wizard -import tests +from . import controllers +from . import models +from . import wizard diff --git a/addons/website/controllers/__init__.py b/addons/website/controllers/__init__.py index d3d170d6fd106..5ee7aaab8f264 100644 --- a/addons/website/controllers/__init__.py +++ b/addons/website/controllers/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import backend -import main +from . import backend +from . import main diff --git a/addons/website/models/__init__.py b/addons/website/models/__init__.py index 217e505410c02..1b00dcf0510d1 100644 --- a/addons/website/models/__init__.py +++ b/addons/website/models/__init__.py @@ -1,13 +1,13 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ir_actions -import ir_ui_view -import ir_qweb -import ir_http -import ir_attachment -import res_company -import res_partner -import res_config -import website -import web_planner +from . import ir_actions +from . import ir_ui_view +from . import ir_qweb +from . import ir_http +from . import ir_attachment +from . import res_company +from . import res_partner +from . import res_config +from . import website +from . import web_planner diff --git a/addons/website/tests/__init__.py b/addons/website/tests/__init__.py index 4088ad17c849b..121eff4ff44f7 100644 --- a/addons/website/tests/__init__.py +++ b/addons/website/tests/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_converter -import test_crawl -import test_ui -import test_views +from . import test_converter +from . import test_crawl +from . import test_ui +from . import test_views diff --git a/addons/website/wizard/__init__.py b/addons/website/wizard/__init__.py index 2e2bdab5bbf5d..959a5a7e21545 100644 --- a/addons/website/wizard/__init__.py +++ b/addons/website/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import base_language_install +from . import base_language_install diff --git a/addons/website_blog/__init__.py b/addons/website_blog/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_blog/__init__.py +++ b/addons/website_blog/__init__.py @@ -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 diff --git a/addons/website_blog/controllers/__init__.py b/addons/website_blog/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_blog/controllers/__init__.py +++ b/addons/website_blog/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_blog/models/__init__.py b/addons/website_blog/models/__init__.py index 4397ed49f4c1f..37f262c009416 100644 --- a/addons/website_blog/models/__init__.py +++ b/addons/website_blog/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import mail_message -import website -import website_blog +from . import mail_message +from . import website +from . import website_blog diff --git a/addons/website_crm/__init__.py b/addons/website_crm/__init__.py index 81fc81d29c953..dc5e6b693d19d 100644 --- a/addons/website_crm/__init__.py +++ b/addons/website_crm/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models +from . import models diff --git a/addons/website_crm/models/__init__.py b/addons/website_crm/models/__init__.py index ecd6026e02491..3a501e9196d5f 100644 --- a/addons/website_crm/models/__init__.py +++ b/addons/website_crm/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import crm_lead -import website_crm_config_settings +from . import crm_lead +from . import website_crm_config_settings diff --git a/addons/website_crm/tests/__init__.py b/addons/website_crm/tests/__init__.py index cbbefc2a12840..1600ebf1a27d9 100644 --- a/addons/website_crm/tests/__init__.py +++ b/addons/website_crm/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_website_crm +from . import test_website_crm diff --git a/addons/website_crm_partner_assign/__init__.py b/addons/website_crm_partner_assign/__init__.py index ea7f1a5a53c23..4e9b019bd7a8d 100644 --- a/addons/website_crm_partner_assign/__init__.py +++ b/addons/website_crm_partner_assign/__init__.py @@ -1,8 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers -import models -import report -import tests -import wizard +from . import controllers +from . import models +from . import report +from . import wizard diff --git a/addons/website_crm_partner_assign/controllers/__init__.py b/addons/website_crm_partner_assign/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_crm_partner_assign/controllers/__init__.py +++ b/addons/website_crm_partner_assign/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_crm_partner_assign/models/__init__.py b/addons/website_crm_partner_assign/models/__init__.py index 935bd5fc27803..7021ef01854df 100644 --- a/addons/website_crm_partner_assign/models/__init__.py +++ b/addons/website_crm_partner_assign/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import crm_lead -import res_partner +from . import crm_lead +from . import res_partner diff --git a/addons/website_crm_partner_assign/report/__init__.py b/addons/website_crm_partner_assign/report/__init__.py index 54af306ac497c..f511955e14f94 100644 --- a/addons/website_crm_partner_assign/report/__init__.py +++ b/addons/website_crm_partner_assign/report/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import crm_lead_report -import crm_partner_report +from . import crm_lead_report +from . import crm_partner_report diff --git a/addons/website_crm_partner_assign/wizard/__init__.py b/addons/website_crm_partner_assign/wizard/__init__.py index 8d0f9d7c24858..72159393de65e 100644 --- a/addons/website_crm_partner_assign/wizard/__init__.py +++ b/addons/website_crm_partner_assign/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import crm_forward_to_partner \ No newline at end of file +from . import crm_forward_to_partner \ No newline at end of file diff --git a/addons/website_customer/__init__.py b/addons/website_customer/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_customer/__init__.py +++ b/addons/website_customer/__init__.py @@ -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 diff --git a/addons/website_customer/controllers/__init__.py b/addons/website_customer/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_customer/controllers/__init__.py +++ b/addons/website_customer/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_customer/models/__init__.py b/addons/website_customer/models/__init__.py index 1e3dc5a9c2bcf..9ec15f238e284 100644 --- a/addons/website_customer/models/__init__.py +++ b/addons/website_customer/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import res_partner +from . import res_partner diff --git a/addons/website_event/__init__.py b/addons/website_event/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_event/__init__.py +++ b/addons/website_event/__init__.py @@ -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 diff --git a/addons/website_event/controllers/__init__.py b/addons/website_event/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/website_event/controllers/__init__.py +++ b/addons/website_event/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_event/models/__init__.py b/addons/website_event/models/__init__.py index 80f7716c2e1fa..5004a8f84118b 100644 --- a/addons/website_event/models/__init__.py +++ b/addons/website_event/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import event +from . import event diff --git a/addons/website_event/tests/__init__.py b/addons/website_event/tests/__init__.py index d989490be61fc..2235dde4188c8 100644 --- a/addons/website_event/tests/__init__.py +++ b/addons/website_event/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_ui +from . import test_ui diff --git a/addons/website_event_questions/__init__.py b/addons/website_event_questions/__init__.py index 904963a54113d..5905766d867f6 100644 --- a/addons/website_event_questions/__init__.py +++ b/addons/website_event_questions/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers -import models -import report +from . import controllers +from . import models +from . import report diff --git a/addons/website_event_questions/controllers/__init__.py b/addons/website_event_questions/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/website_event_questions/controllers/__init__.py +++ b/addons/website_event_questions/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_event_questions/models/__init__.py b/addons/website_event_questions/models/__init__.py index 80f7716c2e1fa..5004a8f84118b 100644 --- a/addons/website_event_questions/models/__init__.py +++ b/addons/website_event_questions/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import event +from . import event diff --git a/addons/website_event_questions/report/__init__.py b/addons/website_event_questions/report/__init__.py index 5e33c19972033..bebed12eef754 100644 --- a/addons/website_event_questions/report/__init__.py +++ b/addons/website_event_questions/report/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import report_event_registrations_questions +from . import report_event_registrations_questions diff --git a/addons/website_event_sale/__init__.py b/addons/website_event_sale/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_event_sale/__init__.py +++ b/addons/website_event_sale/__init__.py @@ -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 diff --git a/addons/website_event_sale/controllers/__init__.py b/addons/website_event_sale/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/website_event_sale/controllers/__init__.py +++ b/addons/website_event_sale/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_event_sale/models/__init__.py b/addons/website_event_sale/models/__init__.py index 44095a2196464..1bd7829ab8652 100644 --- a/addons/website_event_sale/models/__init__.py +++ b/addons/website_event_sale/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -import product -import sale_order -import website +from . import product +from . import sale_order +from . import website diff --git a/addons/website_event_sale/tests/__init__.py b/addons/website_event_sale/tests/__init__.py index bf8ba6321adf1..6dab214ac8062 100644 --- a/addons/website_event_sale/tests/__init__.py +++ b/addons/website_event_sale/tests/__init__.py @@ -1 +1 @@ -import test_ui +from . import test_ui diff --git a/addons/website_event_track/__init__.py b/addons/website_event_track/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_event_track/__init__.py +++ b/addons/website_event_track/__init__.py @@ -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 diff --git a/addons/website_event_track/controllers/__init__.py b/addons/website_event_track/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_event_track/controllers/__init__.py +++ b/addons/website_event_track/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_event_track/models/__init__.py b/addons/website_event_track/models/__init__.py index 3d479511cacac..48beb00267785 100644 --- a/addons/website_event_track/models/__init__.py +++ b/addons/website_event_track/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import event_track -import event +from . import event_track +from . import event diff --git a/addons/website_form/__init__.py b/addons/website_form/__init__.py index 9f86759e32be5..91c5580fed366 100644 --- a/addons/website_form/__init__.py +++ b/addons/website_form/__init__.py @@ -1,2 +1,2 @@ -import controllers -import models +from . import controllers +from . import models diff --git a/addons/website_form/controllers/__init__.py b/addons/website_form/controllers/__init__.py index 8ee9bae18d98f..12a7e529b6741 100644 --- a/addons/website_form/controllers/__init__.py +++ b/addons/website_form/controllers/__init__.py @@ -1 +1 @@ -import main +from . import main diff --git a/addons/website_form/models/__init__.py b/addons/website_form/models/__init__.py index bff786c0885f4..0650744f6bc69 100644 --- a/addons/website_form/models/__init__.py +++ b/addons/website_form/models/__init__.py @@ -1 +1 @@ -import models +from . import models diff --git a/addons/website_forum/__init__.py b/addons/website_forum/__init__.py index dc8bc3228a8ee..aa4d0fd63a934 100644 --- a/addons/website_forum/__init__.py +++ b/addons/website_forum/__init__.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -import controllers -import models -import tests +from . import controllers +from . import models diff --git a/addons/website_forum/controllers/__init__.py b/addons/website_forum/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/website_forum/controllers/__init__.py +++ b/addons/website_forum/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_forum/models/__init__.py b/addons/website_forum/models/__init__.py index 9dc113bc87e5a..6a8174ad9e036 100644 --- a/addons/website_forum/models/__init__.py +++ b/addons/website_forum/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -import gamification -import res_users -import forum +from . import gamification +from . import res_users +from . import forum diff --git a/addons/website_forum/tests/__init__.py b/addons/website_forum/tests/__init__.py index 762e5faaafdb3..9ad68e5f18b2f 100644 --- a/addons/website_forum/tests/__init__.py +++ b/addons/website_forum/tests/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -import common -import test_forum -import test_forum_process +from . import common +from . import test_forum +from . import test_forum_process diff --git a/addons/website_forum_doc/__init__.py b/addons/website_forum_doc/__init__.py index bde83af3aeaea..aa4d0fd63a934 100644 --- a/addons/website_forum_doc/__init__.py +++ b/addons/website_forum_doc/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -import controllers -import models +from . import controllers +from . import models diff --git a/addons/website_forum_doc/controllers/__init__.py b/addons/website_forum_doc/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/website_forum_doc/controllers/__init__.py +++ b/addons/website_forum_doc/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_forum_doc/models/__init__.py b/addons/website_forum_doc/models/__init__.py index 1f99403bfbb8b..b90e7a6fb95e9 100644 --- a/addons/website_forum_doc/models/__init__.py +++ b/addons/website_forum_doc/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -import forum_documentation_toc -import forum_post +from . import forum_documentation_toc +from . import forum_post diff --git a/addons/website_gengo/__init__.py b/addons/website_gengo/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_gengo/__init__.py +++ b/addons/website_gengo/__init__.py @@ -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 diff --git a/addons/website_gengo/controllers/__init__.py b/addons/website_gengo/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_gengo/controllers/__init__.py +++ b/addons/website_gengo/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_gengo/models/__init__.py b/addons/website_gengo/models/__init__.py index 61a6e411f05d6..f361c5909d92f 100644 --- a/addons/website_gengo/models/__init__.py +++ b/addons/website_gengo/models/__init__.py @@ -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 diff --git a/addons/website_google_map/__init__.py b/addons/website_google_map/__init__.py index ec1f9e47d1559..41ac0af222798 100644 --- a/addons/website_google_map/__init__.py +++ b/addons/website_google_map/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers +from . import controllers diff --git a/addons/website_google_map/controllers/__init__.py b/addons/website_google_map/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_google_map/controllers/__init__.py +++ b/addons/website_google_map/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_hr/__init__.py b/addons/website_hr/__init__.py index 6043e4311e6d3..bb0aae7ee6325 100644 --- a/addons/website_hr/__init__.py +++ b/addons/website_hr/__init__.py @@ -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 diff --git a/addons/website_hr/controllers/__init__.py b/addons/website_hr/controllers/__init__.py index b9b6ec85c0dac..7fc0cd7cb934f 100644 --- a/addons/website_hr/controllers/__init__.py +++ b/addons/website_hr/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_hr/models/__init__.py b/addons/website_hr/models/__init__.py index 7b3bbacec47e6..866f406151a15 100644 --- a/addons/website_hr/models/__init__.py +++ b/addons/website_hr/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_employee +from . import hr_employee diff --git a/addons/website_hr_recruitment/__init__.py b/addons/website_hr_recruitment/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_hr_recruitment/__init__.py +++ b/addons/website_hr_recruitment/__init__.py @@ -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 diff --git a/addons/website_hr_recruitment/controllers/__init__.py b/addons/website_hr_recruitment/controllers/__init__.py index 8ee9bae18d98f..12a7e529b6741 100644 --- a/addons/website_hr_recruitment/controllers/__init__.py +++ b/addons/website_hr_recruitment/controllers/__init__.py @@ -1 +1 @@ -import main +from . import main diff --git a/addons/website_hr_recruitment/models/__init__.py b/addons/website_hr_recruitment/models/__init__.py index 18a9584117dca..7e9137491c9e9 100644 --- a/addons/website_hr_recruitment/models/__init__.py +++ b/addons/website_hr_recruitment/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import hr_recruitment +from . import hr_recruitment diff --git a/addons/website_hr_recruitment/tests/__init__.py b/addons/website_hr_recruitment/tests/__init__.py index 3b663956ae86a..09c344a2d91c8 100644 --- a/addons/website_hr_recruitment/tests/__init__.py +++ b/addons/website_hr_recruitment/tests/__init__.py @@ -1 +1 @@ -import test_website_hr_recruitment \ No newline at end of file +from . import test_website_hr_recruitment \ No newline at end of file diff --git a/addons/website_links/__init__.py b/addons/website_links/__init__.py index a064711b06ff5..65d7531a6e2a5 100644 --- a/addons/website_links/__init__.py +++ b/addons/website_links/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import controller +from . import controller diff --git a/addons/website_links/controller/__init__.py b/addons/website_links/controller/__init__.py index a84d81a791b1a..757b12a1f1758 100644 --- a/addons/website_links/controller/__init__.py +++ b/addons/website_links/controller/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_livechat/__init__.py b/addons/website_livechat/__init__.py index 43dbbaa6318d5..9e5827f90ee59 100644 --- a/addons/website_livechat/__init__.py +++ b/addons/website_livechat/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import controllers -import models +from . import controllers +from . import models diff --git a/addons/website_livechat/controllers/__init__.py b/addons/website_livechat/controllers/__init__.py index a84d81a791b1a..757b12a1f1758 100644 --- a/addons/website_livechat/controllers/__init__.py +++ b/addons/website_livechat/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_livechat/models/__init__.py b/addons/website_livechat/models/__init__.py index 87c8e105bcae8..20b496ebf18f8 100644 --- a/addons/website_livechat/models/__init__.py +++ b/addons/website_livechat/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import im_livechat -import website +from . import im_livechat +from . import website diff --git a/addons/website_mail/__init__.py b/addons/website_mail/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_mail/__init__.py +++ b/addons/website_mail/__init__.py @@ -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 diff --git a/addons/website_mail/controllers/__init__.py b/addons/website_mail/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_mail/controllers/__init__.py +++ b/addons/website_mail/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_mail/models/__init__.py b/addons/website_mail/models/__init__.py index e4f2ed1191178..75ea63bd6d8d0 100644 --- a/addons/website_mail/models/__init__.py +++ b/addons/website_mail/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import mail_message -import update +from . import mail_message +from . import update diff --git a/addons/website_mail_channel/__init__.py b/addons/website_mail_channel/__init__.py index 6043e4311e6d3..bb0aae7ee6325 100644 --- a/addons/website_mail_channel/__init__.py +++ b/addons/website_mail_channel/__init__.py @@ -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 diff --git a/addons/website_mail_channel/controllers/__init__.py b/addons/website_mail_channel/controllers/__init__.py index b9b6ec85c0dac..7fc0cd7cb934f 100644 --- a/addons/website_mail_channel/controllers/__init__.py +++ b/addons/website_mail_channel/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_mail_channel/models/__init__.py b/addons/website_mail_channel/models/__init__.py index a1b1803d6e122..5280d256a09d4 100644 --- a/addons/website_mail_channel/models/__init__.py +++ b/addons/website_mail_channel/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import mail_channel -import mail_mail +from . import mail_channel +from . import mail_mail diff --git a/addons/website_membership/__init__.py b/addons/website_membership/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_membership/__init__.py +++ b/addons/website_membership/__init__.py @@ -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 diff --git a/addons/website_membership/controllers/__init__.py b/addons/website_membership/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_membership/controllers/__init__.py +++ b/addons/website_membership/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_membership/models/__init__.py b/addons/website_membership/models/__init__.py index 0875343708373..cda9230929071 100644 --- a/addons/website_membership/models/__init__.py +++ b/addons/website_membership/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import membership +from . import membership diff --git a/addons/website_partner/__init__.py b/addons/website_partner/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/website_partner/__init__.py +++ b/addons/website_partner/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/website_partner/controllers/__init__.py b/addons/website_partner/controllers/__init__.py index a77b4fb037ed5..6920e202048b1 100644 --- a/addons/website_partner/controllers/__init__.py +++ b/addons/website_partner/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main \ No newline at end of file +from . import main \ No newline at end of file diff --git a/addons/website_partner/models/__init__.py b/addons/website_partner/models/__init__.py index acd005f7eaac9..f261da7979fa0 100644 --- a/addons/website_partner/models/__init__.py +++ b/addons/website_partner/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import res_partner +from . import res_partner diff --git a/addons/website_payment/__init__.py b/addons/website_payment/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/website_payment/__init__.py +++ b/addons/website_payment/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/website_payment/controllers/__init__.py b/addons/website_payment/controllers/__init__.py index 8ee9bae18d98f..12a7e529b6741 100644 --- a/addons/website_payment/controllers/__init__.py +++ b/addons/website_payment/controllers/__init__.py @@ -1 +1 @@ -import main +from . import main diff --git a/addons/website_payment/models/__init__.py b/addons/website_payment/models/__init__.py index a02b4070ed078..300cd3e870626 100644 --- a/addons/website_payment/models/__init__.py +++ b/addons/website_payment/models/__init__.py @@ -1,2 +1,2 @@ -import payment -import website +from . import payment +from . import website diff --git a/addons/website_portal/__init__.py b/addons/website_portal/__init__.py index dd6445ec471d6..c92af4efd3d21 100644 --- a/addons/website_portal/__init__.py +++ b/addons/website_portal/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers -import wizard +from . import controllers +from . import wizard diff --git a/addons/website_portal/controllers/__init__.py b/addons/website_portal/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_portal/controllers/__init__.py +++ b/addons/website_portal/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_portal/tests/__init__.py b/addons/website_portal/tests/__init__.py index a2fdc8ff2cfa5..279e43d20340a 100644 --- a/addons/website_portal/tests/__init__.py +++ b/addons/website_portal/tests/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_load_process -import test_portal +from . import test_load_process +from . import test_portal diff --git a/addons/website_portal/wizard/__init__.py b/addons/website_portal/wizard/__init__.py index 1ef06bfa37d08..d92478011a566 100644 --- a/addons/website_portal/wizard/__init__.py +++ b/addons/website_portal/wizard/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import portal_wizard +from . import portal_wizard diff --git a/addons/website_portal_purchase/__init__.py b/addons/website_portal_purchase/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_portal_purchase/__init__.py +++ b/addons/website_portal_purchase/__init__.py @@ -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 diff --git a/addons/website_portal_purchase/controllers/__init__.py b/addons/website_portal_purchase/controllers/__init__.py index 64e12cc78451f..4554440ea0bc0 100644 --- a/addons/website_portal_purchase/controllers/__init__.py +++ b/addons/website_portal_purchase/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import website_portal +from . import website_portal diff --git a/addons/website_portal_purchase/models/__init__.py b/addons/website_portal_purchase/models/__init__.py index 5fcefe23eeb24..41d97a90eb4e1 100644 --- a/addons/website_portal_purchase/models/__init__.py +++ b/addons/website_portal_purchase/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import purchase +from . import purchase diff --git a/addons/website_portal_sale/__init__.py b/addons/website_portal_sale/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_portal_sale/__init__.py +++ b/addons/website_portal_sale/__init__.py @@ -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 diff --git a/addons/website_portal_sale/controllers/__init__.py b/addons/website_portal_sale/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_portal_sale/controllers/__init__.py +++ b/addons/website_portal_sale/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_portal_sale/models/__init__.py b/addons/website_portal_sale/models/__init__.py index 3c771d7e41949..9aa8c7def03a2 100644 --- a/addons/website_portal_sale/models/__init__.py +++ b/addons/website_portal_sale/models/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import account_invoice -import crm_team -import sale_order -import payment +from . import account_invoice +from . import crm_team +from . import sale_order +from . import payment diff --git a/addons/website_project/__init__.py b/addons/website_project/__init__.py index 805c516d3768f..3ea0f0cac4540 100644 --- a/addons/website_project/__init__.py +++ b/addons/website_project/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import controllers -import models \ No newline at end of file +from . import controllers +from . import models \ No newline at end of file diff --git a/addons/website_project/controllers/__init__.py b/addons/website_project/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_project/controllers/__init__.py +++ b/addons/website_project/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_project/models/__init__.py b/addons/website_project/models/__init__.py index f08438b04dcc0..527e2954c0683 100644 --- a/addons/website_project/models/__init__.py +++ b/addons/website_project/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project +from . import project diff --git a/addons/website_project/tests/__init__.py b/addons/website_project/tests/__init__.py index f0019498cd921..ed30c97c0e064 100644 --- a/addons/website_project/tests/__init__.py +++ b/addons/website_project/tests/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_access_rights +from . import test_access_rights diff --git a/addons/website_project_issue/__init__.py b/addons/website_project_issue/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_project_issue/__init__.py +++ b/addons/website_project_issue/__init__.py @@ -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 diff --git a/addons/website_project_issue/controllers/__init__.py b/addons/website_project_issue/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_project_issue/controllers/__init__.py +++ b/addons/website_project_issue/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_project_issue/models/__init__.py b/addons/website_project_issue/models/__init__.py index 8f683c5dcd76b..7e09b51e33c43 100644 --- a/addons/website_project_issue/models/__init__.py +++ b/addons/website_project_issue/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project_issue +from . import project_issue diff --git a/addons/website_quote/__init__.py b/addons/website_quote/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_quote/__init__.py +++ b/addons/website_quote/__init__.py @@ -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 diff --git a/addons/website_quote/controllers/__init__.py b/addons/website_quote/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_quote/controllers/__init__.py +++ b/addons/website_quote/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_quote/models/__init__.py b/addons/website_quote/models/__init__.py index 011bafd821fb4..edf4a481a610f 100644 --- a/addons/website_quote/models/__init__.py +++ b/addons/website_quote/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale_order -import sale_quote -import product_template +from . import sale_order +from . import sale_quote +from . import product_template diff --git a/addons/website_rating_project_issue/__init__.py b/addons/website_rating_project_issue/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_rating_project_issue/__init__.py +++ b/addons/website_rating_project_issue/__init__.py @@ -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 diff --git a/addons/website_rating_project_issue/controllers/__init__.py b/addons/website_rating_project_issue/controllers/__init__.py index a84d81a791b1a..757b12a1f1758 100644 --- a/addons/website_rating_project_issue/controllers/__init__.py +++ b/addons/website_rating_project_issue/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_rating_project_issue/models/__init__.py b/addons/website_rating_project_issue/models/__init__.py index f08438b04dcc0..527e2954c0683 100644 --- a/addons/website_rating_project_issue/models/__init__.py +++ b/addons/website_rating_project_issue/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import project +from . import project diff --git a/addons/website_sale/__init__.py b/addons/website_sale/__init__.py index 9f86759e32be5..91c5580fed366 100644 --- a/addons/website_sale/__init__.py +++ b/addons/website_sale/__init__.py @@ -1,2 +1,2 @@ -import controllers -import models +from . import controllers +from . import models diff --git a/addons/website_sale/controllers/__init__.py b/addons/website_sale/controllers/__init__.py index df4afa315eccc..720ed5bf9282f 100644 --- a/addons/website_sale/controllers/__init__.py +++ b/addons/website_sale/controllers/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import backend -import main -import website_mail +from . import backend +from . import main +from . import website_mail diff --git a/addons/website_sale/models/__init__.py b/addons/website_sale/models/__init__.py index 2ca6f70be0799..9bd76239ea3e5 100644 --- a/addons/website_sale/models/__init__.py +++ b/addons/website_sale/models/__init__.py @@ -1,7 +1,7 @@ -import ir_http -import rating -import product -import sale_order -import crm_team -import res_config -import website +from . import ir_http +from . import rating +from . import product +from . import sale_order +from . import crm_team +from . import res_config +from . import website diff --git a/addons/website_sale/tests/__init__.py b/addons/website_sale/tests/__init__.py index 044f1c71a6568..8bb87e6593618 100644 --- a/addons/website_sale/tests/__init__.py +++ b/addons/website_sale/tests/__init__.py @@ -1,2 +1,2 @@ -import test_sale_process -import test_website_sale_pricelist +from . import test_sale_process +from . import test_website_sale_pricelist diff --git a/addons/website_sale_comparison/__init__.py b/addons/website_sale_comparison/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/website_sale_comparison/__init__.py +++ b/addons/website_sale_comparison/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/website_sale_comparison/controllers/__init__.py b/addons/website_sale_comparison/controllers/__init__.py index a84d81a791b1a..757b12a1f1758 100644 --- a/addons/website_sale_comparison/controllers/__init__.py +++ b/addons/website_sale_comparison/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_sale_comparison/models/__init__.py b/addons/website_sale_comparison/models/__init__.py index 7e9ada39cd571..462de9b9a9264 100644 --- a/addons/website_sale_comparison/models/__init__.py +++ b/addons/website_sale_comparison/models/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import website_sale_comparison \ No newline at end of file +from . import website_sale_comparison \ No newline at end of file diff --git a/addons/website_sale_delivery/__init__.py b/addons/website_sale_delivery/__init__.py index 396c76fe87a0a..f7209b1710021 100644 --- a/addons/website_sale_delivery/__init__.py +++ b/addons/website_sale_delivery/__init__.py @@ -1,2 +1,2 @@ -import models -import controllers +from . import models +from . import controllers diff --git a/addons/website_sale_delivery/controllers/__init__.py b/addons/website_sale_delivery/controllers/__init__.py index 8ee9bae18d98f..12a7e529b6741 100644 --- a/addons/website_sale_delivery/controllers/__init__.py +++ b/addons/website_sale_delivery/controllers/__init__.py @@ -1 +1 @@ -import main +from . import main diff --git a/addons/website_sale_delivery/models/__init__.py b/addons/website_sale_delivery/models/__init__.py index 0f214940526b9..45882aa35acba 100644 --- a/addons/website_sale_delivery/models/__init__.py +++ b/addons/website_sale_delivery/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import res_country -import delivery -import sale_order +from . import res_country +from . import delivery +from . import sale_order diff --git a/addons/website_sale_digital/__init__.py b/addons/website_sale_digital/__init__.py index b845183219a9f..74ee95b34f984 100644 --- a/addons/website_sale_digital/__init__.py +++ b/addons/website_sale_digital/__init__.py @@ -1,3 +1,3 @@ # -*- encoding: utf-8 -*- -import controllers -import models +from . import controllers +from . import models diff --git a/addons/website_sale_digital/controllers/__init__.py b/addons/website_sale_digital/controllers/__init__.py index 1d9fb74e019e4..faeb6a253ca0e 100644 --- a/addons/website_sale_digital/controllers/__init__.py +++ b/addons/website_sale_digital/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- encoding: utf-8 -*- -import main +from . import main diff --git a/addons/website_sale_digital/models/__init__.py b/addons/website_sale_digital/models/__init__.py index 96996f7ac8f2f..dc2af98c7f479 100644 --- a/addons/website_sale_digital/models/__init__.py +++ b/addons/website_sale_digital/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ir_attachment -import account_invoice -import product +from . import ir_attachment +from . import account_invoice +from . import product diff --git a/addons/website_sale_options/__init__.py b/addons/website_sale_options/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_sale_options/__init__.py +++ b/addons/website_sale_options/__init__.py @@ -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 diff --git a/addons/website_sale_options/controllers/__init__.py b/addons/website_sale_options/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_sale_options/controllers/__init__.py +++ b/addons/website_sale_options/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_sale_options/models/__init__.py b/addons/website_sale_options/models/__init__.py index 4fed6601c924f..ff797314513ab 100644 --- a/addons/website_sale_options/models/__init__.py +++ b/addons/website_sale_options/models/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import product -import sale_order +from . import product +from . import sale_order diff --git a/addons/website_sale_options/tests/__init__.py b/addons/website_sale_options/tests/__init__.py index 8f5bb28ad1be0..38533d75c78d3 100644 --- a/addons/website_sale_options/tests/__init__.py +++ b/addons/website_sale_options/tests/__init__.py @@ -1 +1 @@ -import test_customize \ No newline at end of file +from . import test_customize \ No newline at end of file diff --git a/addons/website_sale_stock/__init__.py b/addons/website_sale_stock/__init__.py index 5f9ef702708ff..807507c1b6ba2 100644 --- a/addons/website_sale_stock/__init__.py +++ b/addons/website_sale_stock/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models \ No newline at end of file +from . import models \ No newline at end of file diff --git a/addons/website_sale_stock/models/__init__.py b/addons/website_sale_stock/models/__init__.py index b8b239729b60a..02ab52879dc1a 100644 --- a/addons/website_sale_stock/models/__init__.py +++ b/addons/website_sale_stock/models/__init__.py @@ -1 +1 @@ -import website \ No newline at end of file +from . import website \ No newline at end of file diff --git a/addons/website_sale_wishlist/__init__.py b/addons/website_sale_wishlist/__init__.py index 5efbd253ebb27..8c67f893b379e 100644 --- a/addons/website_sale_wishlist/__init__.py +++ b/addons/website_sale_wishlist/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import controllers +from . import models +from . import controllers diff --git a/addons/website_sale_wishlist/controllers/__init__.py b/addons/website_sale_wishlist/controllers/__init__.py index a84d81a791b1a..757b12a1f1758 100644 --- a/addons/website_sale_wishlist/controllers/__init__.py +++ b/addons/website_sale_wishlist/controllers/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_sale_wishlist/models/__init__.py b/addons/website_sale_wishlist/models/__init__.py index 9f849c2393b35..634ff473a36a1 100644 --- a/addons/website_sale_wishlist/models/__init__.py +++ b/addons/website_sale_wishlist/models/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import product_wishlist \ No newline at end of file +from . import product_wishlist \ No newline at end of file diff --git a/addons/website_slides/__init__.py b/addons/website_slides/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_slides/__init__.py +++ b/addons/website_slides/__init__.py @@ -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 diff --git a/addons/website_slides/controllers/__init__.py b/addons/website_slides/controllers/__init__.py index bbd183e955bbc..65a8c12013d23 100644 --- a/addons/website_slides/controllers/__init__.py +++ b/addons/website_slides/controllers/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import main +from . import main diff --git a/addons/website_slides/models/__init__.py b/addons/website_slides/models/__init__.py index ef5906d253979..c34d07ffbd7d3 100644 --- a/addons/website_slides/models/__init__.py +++ b/addons/website_slides/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import res_config -import slides +from . import res_config +from . import slides diff --git a/addons/website_theme_install/__init__.py b/addons/website_theme_install/__init__.py index 2c4eac3f855c1..9a7e03eded373 100644 --- a/addons/website_theme_install/__init__.py +++ b/addons/website_theme_install/__init__.py @@ -1 +1 @@ -import models \ No newline at end of file +from . import models \ No newline at end of file diff --git a/addons/website_theme_install/models/__init__.py b/addons/website_theme_install/models/__init__.py index 7b3c2ef6a7847..c32871d604e18 100644 --- a/addons/website_theme_install/models/__init__.py +++ b/addons/website_theme_install/models/__init__.py @@ -1 +1 @@ -import ir_module_module \ No newline at end of file +from . import ir_module_module \ No newline at end of file diff --git a/addons/website_twitter/__init__.py b/addons/website_twitter/__init__.py index ac0011716f6ec..7d34c7c054abd 100644 --- a/addons/website_twitter/__init__.py +++ b/addons/website_twitter/__init__.py @@ -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 diff --git a/addons/website_twitter/controllers/__init__.py b/addons/website_twitter/controllers/__init__.py index f48716d3a6907..5d4b25db9c001 100644 --- a/addons/website_twitter/controllers/__init__.py +++ b/addons/website_twitter/controllers/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import main +from . import main diff --git a/addons/website_twitter/models/__init__.py b/addons/website_twitter/models/__init__.py index 21fb047fa67a3..ceedf4344e66e 100644 --- a/addons/website_twitter/models/__init__.py +++ b/addons/website_twitter/models/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import website_twitter -import website_twitter_config -import website_twitter_tweet +from . import website_twitter +from . import website_twitter_config +from . import website_twitter_tweet diff --git a/doc/python3.rst b/doc/python3.rst index 407d8e9ee5690..df86107c35b7a 100644 --- a/doc/python3.rst +++ b/doc/python3.rst @@ -64,6 +64,51 @@ features whereas: Moved and removed ================= +Standard Library Modules +------------------------ + +Python 3 reorganised, moved or removed a number of modules in the standard +library: + +* ``StringIO`` and ``cStringIO`` were removed, you can use ``io.BytesIO`` and + ``io.StringIO`` to replace them in a cross-version manner (``io.BytesIO`` + for binary data, ``io.StringIO`` for text/unicode data). +* ``urllib``, ``urllib2`` and ``urlparse`` were redistributed across + ``urllib.parse`` and ``urllib.request``, you may want to use conditional + imports e.g. try to import the Python 3 version and fallback on the Python + 2 version. + +Absolute Imports (:pep:`328`) +----------------------------- + +.. important:: + + In Python 3, ``import foo`` can only import from a "top-level" library + (absolute path). If trying to import a sibling or sub-module you *must* + use an explicitly *relative import* e.g. ``from . import foo`` or + ``from .foo import bar``. + +In Python 2 ``import`` statements are ambiguous: if a file ``a.py`` contains +``import b``, the import system will first check if there's a ``b.py`` file +next to it before checking if there is a package called that on the +PYTHONPATH. + +Furthermore if a sibling file is named the same as top-level package, the +library becomes inaccessible to both the file itself ans siblings, this has +actually happened in Odoo with :mod:`odoo.tools.mimetypes`. + +Additionally, relative imports allow navigating "up" the tree by using +multiple leading ``.``. + +.. note:: + + Explicitly relative imports are always available in Python 2, and should + be used everywhere. + + You can ensure you are not using any implicitly relative import by adding + ``from __future__ import absolute_import`` at the top of your files, or by + running the ``relative-import`` PyLint. + Exception Handlers ------------------ diff --git a/odoo/__init__.py b/odoo/__init__.py index dbf17c02200a9..4c074c9beb366 100644 --- a/odoo/__init__.py +++ b/odoo/__init__.py @@ -54,17 +54,17 @@ def registry(database_name=None): #---------------------------------------------------------- # Imports #---------------------------------------------------------- -import addons -import conf -import loglevels -import modules -import netsvc -import osv -import release -import report -import service -import sql_db -import tools +from . import addons +from . import conf +from . import loglevels +from . import modules +from . import netsvc +from . import osv +from . import release +from . import report +from . import service +from . import sql_db +from . import tools #---------------------------------------------------------- # Model classes, fields, api decorators, and translations @@ -77,5 +77,5 @@ def registry(database_name=None): #---------------------------------------------------------- # Other imports, which may require stuff from above #---------------------------------------------------------- -import cli -import http +from . import cli +from . import http diff --git a/odoo/addons/base/__init__.py b/odoo/addons/base/__init__.py index 2defb05a2a7a6..12f085fadc986 100644 --- a/odoo/addons/base/__init__.py +++ b/odoo/addons/base/__init__.py @@ -1,11 +1,10 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ir -import module -import res -import report -import tests +from . import ir +from . import module +from . import res +from . import report def post_init(cr, registry): """Rewrite ICP's to force groups""" diff --git a/odoo/addons/base/ir/__init__.py b/odoo/addons/base/ir/__init__.py index 9de55cfaff787..0b99d65f2bf1b 100644 --- a/odoo/addons/base/ir/__init__.py +++ b/odoo/addons/base/ir/__init__.py @@ -1,22 +1,22 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ir_model -import ir_sequence -import ir_ui_menu -import ir_ui_view -import ir_actions -import ir_attachment -import ir_cron -import ir_filters -import ir_values -import ir_translation -import ir_exports -import ir_rule -import ir_config_parameter -import ir_autovacuum -import ir_mail_server -import ir_fields -import ir_qweb -import ir_http -import ir_logging +from . import ir_model +from . import ir_sequence +from . import ir_ui_menu +from . import ir_ui_view +from . import ir_actions +from . import ir_attachment +from . import ir_cron +from . import ir_filters +from . import ir_values +from . import ir_translation +from . import ir_exports +from . import ir_rule +from . import ir_config_parameter +from . import ir_autovacuum +from . import ir_mail_server +from . import ir_fields +from . import ir_qweb +from . import ir_http +from . import ir_logging diff --git a/odoo/addons/base/ir/ir_http.py b/odoo/addons/base/ir/ir_http.py index 756769104610c..3d9c72aec60aa 100644 --- a/odoo/addons/base/ir/ir_http.py +++ b/odoo/addons/base/ir/ir_http.py @@ -10,7 +10,6 @@ import os import re import sys -import urllib2 import werkzeug import werkzeug.exceptions diff --git a/odoo/addons/base/ir/ir_qweb/fields.py b/odoo/addons/base/ir/ir_qweb/fields.py index e40f64c393778..a1f9014b6d8af 100644 --- a/odoo/addons/base/ir/ir_qweb/fields.py +++ b/odoo/addons/base/ir/ir_qweb/fields.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- import re from collections import OrderedDict +from io import BytesIO from odoo import api, fields, models, _ from PIL import Image -from cStringIO import StringIO import babel from odoo.tools import html_escape as escape, posix_to_ldml, safe_eval, float_utils, format_date from .qweb import unicodifier @@ -269,7 +269,7 @@ class ImageConverter(models.AbstractModel): @api.model def value_to_html(self, value, options): try: - image = Image.open(StringIO(value.decode('base64'))) + image = Image.open(BytesIO(value.decode('base64'))) image.verify() except IOError: raise ValueError("Non-image binary fields can not be converted to HTML") diff --git a/odoo/addons/base/ir/ir_qweb/ir_qweb.py b/odoo/addons/base/ir/ir_qweb/ir_qweb.py index 20a640be8d44e..68c4bf048d7a0 100644 --- a/odoo/addons/base/ir/ir_qweb/ir_qweb.py +++ b/odoo/addons/base/ir/ir_qweb/ir_qweb.py @@ -1,23 +1,29 @@ # -*- coding: utf-8 -*- from __future__ import print_function import ast -from urlparse import urlparse +import json +import logging +from collections import OrderedDict +from time import time +try: + from urllib.parse import urlparse +except ImportError: + # pylint: disable=bad-python3-import + from urlparse import urlparse + from lxml import html +from lxml import etree from odoo.tools import pycompat -from .qweb import QWeb, Contextifier -from .assetsbundle import AssetsBundle -from lxml import etree -from collections import OrderedDict from odoo import api, models, tools from odoo.tools.safe_eval import assert_valid_codeobj, _BUILTINS, _SAFE_OPCODES from odoo.http import request from odoo.modules.module import get_resource_path -import json -from time import time -import logging +from .qweb import QWeb, Contextifier +from .assetsbundle import AssetsBundle + _logger = logging.getLogger(__name__) diff --git a/odoo/addons/base/ir/ir_qweb/qweb.py b/odoo/addons/base/ir/ir_qweb/qweb.py index a420432634499..b395dfb7698f6 100644 --- a/odoo/addons/base/ir/ir_qweb/qweb.py +++ b/odoo/addons/base/ir/ir_qweb/qweb.py @@ -1,28 +1,33 @@ # -*- coding: utf-8 -*- import ast -from collections import OrderedDict, Sized, Mapping, defaultdict -from lxml import etree, html +import logging import re import traceback -from itertools import count + +from collections import OrderedDict, Sized, Mapping, defaultdict +from functools import reduce +from itertools import chain, izip, tee, count from textwrap import dedent + +from lxml import etree, html import werkzeug from werkzeug.utils import escape as _escape -from itertools import chain, izip, tee -import __builtin__ -from functools import reduce from odoo.tools import pycompat -builtin_defaults = {name: getattr(__builtin__, name) for name in dir(__builtin__)} +try: + import builtins + builtin_defaults = {name: getattr(builtins, name) for name in dir(builtins)} +except ImportError: + # pylint: disable=bad-python3-import + import __builtin__ + builtin_defaults = {name: getattr(__builtin__, name) for name in dir(__builtin__)} try: import astor except ImportError: astor = None -import logging - unsafe_eval = eval _logger = logging.getLogger(__name__) diff --git a/odoo/addons/base/module/__init__.py b/odoo/addons/base/module/__init__.py index 8d1010ae88a0f..e455df1518200 100644 --- a/odoo/addons/base/module/__init__.py +++ b/odoo/addons/base/module/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import module -import wizard -import report +from . import module +from . import wizard +from . import report diff --git a/odoo/addons/base/module/module.py b/odoo/addons/base/module/module.py index 1178fcca49f5b..f95c2b07dc1fa 100644 --- a/odoo/addons/base/module/module.py +++ b/odoo/addons/base/module/module.py @@ -3,25 +3,27 @@ from collections import defaultdict from operator import attrgetter import importlib +import io import logging import os import shutil import tempfile -import urllib2 -import urlparse import zipfile +try: + from urllib import parse as urlparse + from urllib.request import urlopen +except ImportError: + # pylint: disable=bad-python3-import + import urlparse + from urllib2 import urlopen + from docutils import nodes from docutils.core import publish_string from docutils.transforms import Transform, writer_aux from docutils.writers.html4css1 import Writer import lxml.html -try: - from cStringIO import StringIO -except ImportError: - from StringIO import StringIO # NOQA - import odoo from odoo import api, fields, models, modules, tools, _ from odoo.exceptions import AccessDenied, UserError @@ -676,12 +678,12 @@ def install_from_urls(self, urls): try: _logger.info('Downloading module `%s` from OpenERP Apps', module_name) - content = urllib2.urlopen(url).read() + content = urlopen(url).read() except Exception: _logger.exception('Failed to fetch module %s', module_name) raise UserError(_('The `%s` module appears to be unavailable at the moment, please try again later.') % module_name) else: - zipfile.ZipFile(StringIO(content)).extractall(tmp) + zipfile.ZipFile(io.BytesIO(content)).extractall(tmp) assert os.path.isdir(os.path.join(tmp, module_name)) # 2a. Copy/Replace module source in addons path diff --git a/odoo/addons/base/module/report/__init__.py b/odoo/addons/base/module/report/__init__.py index 3354d265c76c4..1d8f3aef4dac3 100644 --- a/odoo/addons/base/module/report/__init__.py +++ b/odoo/addons/base/module/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ir_module_reference_print +from . import ir_module_reference_print diff --git a/odoo/addons/base/module/wizard/__init__.py b/odoo/addons/base/module/wizard/__init__.py index 35d85e5e002f4..a0d693f948dd3 100644 --- a/odoo/addons/base/module/wizard/__init__.py +++ b/odoo/addons/base/module/wizard/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import base_module_update -import base_language_install -import base_import_language -import base_module_upgrade -import base_module_configuration -import base_export_language -import base_update_translations +from . import base_module_update +from . import base_language_install +from . import base_import_language +from . import base_module_upgrade +from . import base_module_configuration +from . import base_export_language +from . import base_update_translations diff --git a/odoo/addons/base/module/wizard/base_export_language.py b/odoo/addons/base/module/wizard/base_export_language.py index cd19222af14ee..50c57bb870e2c 100644 --- a/odoo/addons/base/module/wizard/base_export_language.py +++ b/odoo/addons/base/module/wizard/base_export_language.py @@ -3,7 +3,7 @@ import base64 import contextlib -import cStringIO +import io from odoo import api, fields, models, tools, _ @@ -34,7 +34,7 @@ def act_getfile(self): lang = this.lang if this.lang != NEW_LANG_KEY else False mods = sorted(this.mapped('modules.name')) or ['all'] - with contextlib.closing(cStringIO.StringIO()) as buf: + with contextlib.closing(io.BytesIO()) as buf: tools.trans_export(lang, mods, buf, this.format, self._cr) out = base64.encodestring(buf.getvalue()) diff --git a/odoo/addons/base/module/wizard/base_update_translations.py b/odoo/addons/base/module/wizard/base_update_translations.py index c5057a01fff70..8f487dbbafe2d 100644 --- a/odoo/addons/base/module/wizard/base_update_translations.py +++ b/odoo/addons/base/module/wizard/base_update_translations.py @@ -2,7 +2,7 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. import contextlib -import cStringIO +import io from odoo import api, fields, models, tools, _ from odoo.exceptions import UserError @@ -37,7 +37,7 @@ def _get_lang_name(self, lang_code): def act_update(self): this = self[0] lang_name = self._get_lang_name(this.lang) - with contextlib.closing(cStringIO.StringIO()) as buf: + with contextlib.closing(io.BytesIO()) as buf: tools.trans_export(this.lang, ['all'], buf, 'csv', self._cr) tools.trans_load_data(self._cr, buf, 'csv', this.lang, lang_name=lang_name) return {'type': 'ir.actions.act_window_close'} diff --git a/odoo/addons/base/report/__init__.py b/odoo/addons/base/report/__init__.py index 254008f018573..6ce403b663370 100644 --- a/odoo/addons/base/report/__init__.py +++ b/odoo/addons/base/report/__init__.py @@ -1 +1 @@ -import preview_report +from . import preview_report diff --git a/odoo/addons/base/res/__init__.py b/odoo/addons/base/res/__init__.py index a43bcf804628d..ee904734c09e2 100644 --- a/odoo/addons/base/res/__init__.py +++ b/odoo/addons/base/res/__init__.py @@ -1,14 +1,14 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import res_country -import res_lang -import res_partner -import res_bank -import res_config -import res_currency -import res_font -import res_company -import res_users -import res_request -import ir_property +from . import res_country +from . import res_lang +from . import res_partner +from . import res_bank +from . import res_config +from . import res_currency +from . import res_font +from . import res_company +from . import res_users +from . import res_request +from . import ir_property diff --git a/odoo/addons/base/res/res_partner.py b/odoo/addons/base/res/res_partner.py index 42edc43b2b7b4..fe758d36de127 100644 --- a/odoo/addons/base/res/res_partner.py +++ b/odoo/addons/base/res/res_partner.py @@ -6,8 +6,14 @@ import hashlib import pytz import threading -import urllib2 -import urlparse + +try: + from urllib import parse as urlparse + from urllib.request import urlopen +except ImportError: + # pylint: disable=bad-python3-import + import urlparse + from urllib2 import urlopen from email.utils import formataddr from lxml import etree @@ -16,7 +22,6 @@ from odoo.modules import get_module_resource from odoo.osv.expression import get_unaccent_wrapper from odoo.exceptions import UserError, ValidationError -from odoo.osv.orm import browse_record # Global variables used for the warning fields declared on the res.partner # in the following modules : sale, purchase, account, stock @@ -702,7 +707,7 @@ def _get_gravatar_image(self, email): email_hash = hashlib.md5(email.lower()).hexdigest() url = "https://www.gravatar.com/avatar/" + email_hash try: - image_content = urllib2.urlopen(url + "?d=404&s=128", timeout=5).read() + image_content = urlopen(url + "?d=404&s=128", timeout=5).read() gravatar_image = base64.b64encode(image_content) except Exception: pass diff --git a/odoo/addons/base/tests/__init__.py b/odoo/addons/base/tests/__init__.py index a59e87094f720..6ae162486d644 100644 --- a/odoo/addons/base/tests/__init__.py +++ b/odoo/addons/base/tests/__init__.py @@ -1,34 +1,34 @@ -import test_acl -import test_api -import test_base -import test_basecase -import test_db_cursor -import test_expression -import test_float -import test_func -import test_ir_actions -import test_ir_attachment -import test_ir_http -import test_ir_filters -import test_ir_sequence -import test_ir_sequence_date_range -import test_ir_values -import test_mail -import test_menu -import test_mimetypes -import test_misc -import test_orm -import test_ormcache -import test_osv -import test_phase -import test_qweb -import test_res_config -import test_res_lang -import test_search -import test_translate +from . import test_acl +from . import test_api +from . import test_base +from . import test_basecase +from . import test_db_cursor +from . import test_expression +from . import test_float +from . import test_func +from . import test_ir_actions +from . import test_ir_attachment +from . import test_ir_http +from . import test_ir_filters +from . import test_ir_sequence +from . import test_ir_sequence_date_range +from . import test_ir_values +from . import test_mail +from . import test_menu +from . import test_mimetypes +from . import test_misc +from . import test_orm +from . import test_ormcache +from . import test_osv +from . import test_phase +from . import test_qweb +from . import test_res_config +from . import test_res_lang +from . import test_search +from . import test_translate #import test_uninstall # loop -import test_user_has_group -import test_view_validation -import test_views -import test_xmlrpc -import test_res_partner_bank +from . import test_user_has_group +from . import test_view_validation +from . import test_views +from . import test_xmlrpc +from . import test_res_partner_bank diff --git a/odoo/addons/base/tests/test_view_validation.py b/odoo/addons/base/tests/test_view_validation.py index 963f737ae4d99..a408b9936053a 100644 --- a/odoo/addons/base/tests/test_view_validation.py +++ b/odoo/addons/base/tests/test_view_validation.py @@ -2,7 +2,7 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from lxml import etree -from StringIO import StringIO +import io import unittest from odoo.tools.view_validation import ( @@ -11,7 +11,7 @@ valid_field_in_graph, valid_field_in_tree, ) -invalid_form = etree.parse(StringIO('''\ +invalid_form = etree.parse(io.BytesIO('''\
@@ -34,7 +34,7 @@ ''')).getroot() -valid_form = etree.parse(StringIO('''\ +valid_form = etree.parse(io.BytesIO('''\
@@ -54,7 +54,7 @@
''')).getroot() -invalid_graph = etree.parse(StringIO('''\ +invalid_graph = etree.parse(io.BytesIO('''\ ''')).getroot() -valid_graph = etree.parse(StringIO('''\ +valid_graph = etree.parse(io.BytesIO('''\ ''')).getroot() -invalid_tree = etree.parse(StringIO('''\ +invalid_tree = etree.parse(io.BytesIO('''\
@@ -84,7 +84,7 @@ ''')).getroot() -valid_tree = etree.parse(StringIO('''\ +valid_tree = etree.parse(io.BytesIO('''\ diff --git a/odoo/addons/test_access_rights/__init__.py b/odoo/addons/test_access_rights/__init__.py index 89d26e2f59742..a0fdc10fe11b9 100644 --- a/odoo/addons/test_access_rights/__init__.py +++ b/odoo/addons/test_access_rights/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import models +from . import models diff --git a/odoo/addons/test_access_rights/tests/__init__.py b/odoo/addons/test_access_rights/tests/__init__.py index 6e1c696fc3760..1ba8765ddc033 100644 --- a/odoo/addons/test_access_rights/tests/__init__.py +++ b/odoo/addons/test_access_rights/tests/__init__.py @@ -1 +1 @@ -import test_ir_rules +from . import test_ir_rules diff --git a/odoo/addons/test_assetsbundle/__init__.py b/odoo/addons/test_assetsbundle/__init__.py index ee5959455ad41..e046e49fbe22a 100644 --- a/odoo/addons/test_assetsbundle/__init__.py +++ b/odoo/addons/test_assetsbundle/__init__.py @@ -1 +1 @@ -import controllers +from . import controllers diff --git a/odoo/addons/test_impex/__init__.py b/odoo/addons/test_impex/__init__.py index bff786c0885f4..0650744f6bc69 100644 --- a/odoo/addons/test_impex/__init__.py +++ b/odoo/addons/test_impex/__init__.py @@ -1 +1 @@ -import models +from . import models diff --git a/odoo/addons/test_inherit/__init__.py b/odoo/addons/test_inherit/__init__.py index 89d26e2f59742..a0fdc10fe11b9 100644 --- a/odoo/addons/test_inherit/__init__.py +++ b/odoo/addons/test_inherit/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import models +from . import models diff --git a/odoo/addons/test_new_api/__init__.py b/odoo/addons/test_new_api/__init__.py index 361c3498d66c8..a0fdc10fe11b9 100644 --- a/odoo/addons/test_new_api/__init__.py +++ b/odoo/addons/test_new_api/__init__.py @@ -1,3 +1,2 @@ # -*- coding: utf-8 -*- -import models -import tests +from . import models diff --git a/odoo/addons/test_pylint/tests/__init__.py b/odoo/addons/test_pylint/tests/__init__.py index c102da5600ee5..66bc70c522e18 100644 --- a/odoo/addons/test_pylint/tests/__init__.py +++ b/odoo/addons/test_pylint/tests/__init__.py @@ -1 +1 @@ -import test_pylint +from . import test_pylint diff --git a/odoo/addons/test_pylint/tests/test_pylint.py b/odoo/addons/test_pylint/tests/test_pylint.py index 02c1a14a261e5..1ae544e56a68f 100644 --- a/odoo/addons/test_pylint/tests/test_pylint.py +++ b/odoo/addons/test_pylint/tests/test_pylint.py @@ -26,6 +26,12 @@ class TestPyLint(TransactionCase): 'W0123', # eval used 'W0101', # unreachable code + 'misplaced-future', + 'relative-import', + 'deprecated-module', + 'import-star-module-level', + # 'bad-python3-import', # TODO: more stuff used in report + 'long-suffix', 'apply-builtin', 'cmp-builtin', @@ -73,4 +79,4 @@ def test_pylint(self): else: out = process.communicate()[0] if process.returncode: - self.fail(msg="\n" + out) + self.fail("\n" + out) diff --git a/odoo/cli/__init__.py b/odoo/cli/__init__.py index 1fd63804785b4..4b860fe68d632 100644 --- a/odoo/cli/__init__.py +++ b/odoo/cli/__init__.py @@ -4,10 +4,10 @@ import odoo -from command import Command, main +from .command import Command, main -import deploy -import scaffold -import server -import shell -import start +from . import deploy +from . import scaffold +from . import server +from . import shell +from . import start diff --git a/odoo/conf/__init__.py b/odoo/conf/__init__.py index a189f085405ba..b9722b9fff602 100644 --- a/odoo/conf/__init__.py +++ b/odoo/conf/__init__.py @@ -15,7 +15,7 @@ """ -import deprecation +from . import deprecation # Paths to search for OpenERP addons. addons_paths = [] diff --git a/odoo/exceptions.py b/odoo/exceptions.py index d83e350c62438..1facc6207cb50 100644 --- a/odoo/exceptions.py +++ b/odoo/exceptions.py @@ -12,7 +12,7 @@ import logging from inspect import currentframe -from tools.func import frame_codeinfo +from .tools.func import frame_codeinfo _logger = logging.getLogger(__name__) diff --git a/odoo/fields.py b/odoo/fields.py index d713167a1011b..9a440651268de 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -10,7 +10,11 @@ from types import NoneType import logging import pytz -import xmlrpclib +try: + from xmlrpc.client import MAXINT +except ImportError: + #pylint: disable=bad-python3-import + from xmlrpclib import MAXINT import psycopg2 @@ -1168,7 +1172,7 @@ def convert_to_cache(self, value, record, validate=True): def convert_to_read(self, value, record, use_name_get=True): # Integer values greater than 2^31-1 are not supported in pure XMLRPC, # so we have to pass them as floats :-( - if value and value > xmlrpclib.MAXINT: + if value and value > MAXINT: return float(value) return value diff --git a/odoo/http.py b/odoo/http.py index 9eb9e75e101c0..210361fce1b3f 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -20,8 +20,12 @@ import threading import time import traceback -import urllib2 -import urlparse +try: + from urllib.parse import parse_qs, urlparse, quote +except ImportError: + # pylint: disable=bad-python3-import + from urllib2 import quote + from urlparse import parse_qs, urlparse import warnings from os.path import join as opj from zlib import adler32 @@ -344,7 +348,7 @@ def debug(self): debug = self.httprequest.environ.get('HTTP_X_DEBUG_MODE') if not debug and self.httprequest.referrer: - debug = bool(urlparse.parse_qs(urlparse.urlparse(self.httprequest.referrer).query, keep_blank_values=True).get('debug')) + debug = bool(parse_qs(urlparse(self.httprequest.referrer).query, keep_blank_values=True).get('debug')) return debug @contextlib.contextmanager @@ -1250,7 +1254,7 @@ def __init__(self, app): def __call__(self, environ, start_response): def start_wrapped(status, headers): referer = environ.get('HTTP_REFERER', '') - parsed = urlparse.urlparse(referer) + parsed = urlparse(referer) debug = parsed.query.count('debug') >= 1 new_headers = [] @@ -1616,7 +1620,7 @@ def send_file(filepath_or_fp, mimetype=None, as_attachment=False, filename=None, def content_disposition(filename): filename = odoo.tools.ustr(filename) - escaped = urllib2.quote(filename.encode('utf8')) + escaped = quote(filename.encode('utf8')) browser = request.httprequest.user_agent.browser version = int((request.httprequest.user_agent.version or '0').split('.')[0]) if browser == 'msie' and version < 9: diff --git a/odoo/modules/graph.py b/odoo/modules/graph.py index 9a11949c508c6..d962ea78bdc62 100644 --- a/odoo/modules/graph.py +++ b/odoo/modules/graph.py @@ -3,27 +3,12 @@ """ Modules dependency graph. """ -import os, sys, imp -from os.path import join as opj import itertools -import zipimport +import logging import odoo - -import odoo.osv as osv import odoo.tools as tools -import odoo.tools.osutil as osutil -from odoo.tools.translate import _ - -import zipfile -import odoo.release as release -import re -import base64 -from zipfile import PyZipFile, ZIP_DEFLATED -from cStringIO import StringIO - -import logging _logger = logging.getLogger(__name__) diff --git a/odoo/netsvc.py b/odoo/netsvc.py index b62f830eb9c35..3832ae10cd6f9 100644 --- a/odoo/netsvc.py +++ b/odoo/netsvc.py @@ -6,15 +6,15 @@ import os import platform import pprint -import release +from . import release import sys import threading import psycopg2 import odoo -import sql_db -import tools +from . import sql_db +from . import tools _logger = logging.getLogger(__name__) @@ -110,7 +110,7 @@ def init_logger(): logging.addLevelName(25, "INFO") - from tools.translate import resetlocale + from .tools.translate import resetlocale resetlocale() # create a format for log messages and dates diff --git a/odoo/osv/__init__.py b/odoo/osv/__init__.py index 80a43a61ec436..9399e4410fbb4 100644 --- a/odoo/osv/__init__.py +++ b/odoo/osv/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import osv +from . import osv diff --git a/odoo/service/__init__.py b/odoo/service/__init__.py index eecc801d801fa..5d61b35f0e480 100644 --- a/odoo/service/__init__.py +++ b/odoo/service/__init__.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import common -import db -import model -import report -import wsgi_server -import server +from . import common +from . import db +from . import model +from . import report +from . import wsgi_server +from . import server #.apidoc title: RPC Services diff --git a/odoo/service/common.py b/odoo/service/common.py index e79adcc2528ab..36f61b0cab593 100644 --- a/odoo/service/common.py +++ b/odoo/service/common.py @@ -6,7 +6,7 @@ import odoo.tools from odoo.tools.translate import _ -import security +from . import security _logger = logging.getLogger(__name__) diff --git a/odoo/service/model.py b/odoo/service/model.py index 33a7fb2b93fb1..9ceab82b4525c 100644 --- a/odoo/service/model.py +++ b/odoo/service/model.py @@ -14,7 +14,7 @@ from odoo.tools.translate import translate from odoo.tools.translate import _ -import security +from . import security _logger = logging.getLogger(__name__) diff --git a/odoo/service/report.py b/odoo/service/report.py index 42daa393e779e..faac5521b995f 100644 --- a/odoo/service/report.py +++ b/odoo/service/report.py @@ -10,7 +10,7 @@ from odoo import tools from odoo.exceptions import UserError -import security +from . import security _logger = logging.getLogger(__name__) diff --git a/odoo/service/wsgi_server.py b/odoo/service/wsgi_server.py index 3f4dc4b46ad5d..afcac829856ce 100644 --- a/odoo/service/wsgi_server.py +++ b/odoo/service/wsgi_server.py @@ -7,19 +7,17 @@ """ -import httplib -import urllib -import xmlrpclib -import StringIO - -import errno import logging -import platform -import socket import sys import threading import traceback +try: + from xmlrpc import client as xmlrpclib +except ImportError: + # pylint: disable=bad-python3-import + import xmlrpclib + import werkzeug.serving import werkzeug.contrib.fixers diff --git a/odoo/sql_db.py b/odoo/sql_db.py index 214dbfca96cb7..9a438d387dea0 100644 --- a/odoo/sql_db.py +++ b/odoo/sql_db.py @@ -12,8 +12,12 @@ from functools import wraps import logging import time -import urlparse import uuid +try: + from urllib import parse as urlparse +except ImportError: + #pylint: disable=bad-python3-import + import urlparse import psycopg2 import psycopg2.extras @@ -48,8 +52,8 @@ def undecimalize(symb, cr): psycopg2.extensions.register_type(psycopg2.extensions.new_type((700, 701, 1700,), 'float', undecimalize)) -import tools -from tools.func import frame_codeinfo +from . import tools +from .tools.func import frame_codeinfo from datetime import timedelta import threading from inspect import currentframe diff --git a/odoo/tests/__init__.py b/odoo/tests/__init__.py index bdf699e64674b..4b678c6f375a7 100644 --- a/odoo/tests/__init__.py +++ b/odoo/tests/__init__.py @@ -1,2 +1,2 @@ -import common -from common import * +from . import common +from .common import * diff --git a/odoo/tests/addons/test_translation_import/__init__.py b/odoo/tests/addons/test_translation_import/__init__.py index 89d26e2f59742..a0fdc10fe11b9 100644 --- a/odoo/tests/addons/test_translation_import/__init__.py +++ b/odoo/tests/addons/test_translation_import/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import models +from . import models diff --git a/odoo/tests/common.py b/odoo/tests/common.py index 29bfdd79d0e82..ce7be91ffd42c 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -16,11 +16,16 @@ import time import itertools import unittest -import urllib2 -import xmlrpclib from contextlib import contextmanager from datetime import datetime, timedelta from pprint import pformat +try: + from urllib import request as urllib2 + from xmlrpc import client as xmlrpclib +except ImportError: + # pylint: disable=bad-python3-import + import urllib2 + import xmlrpclib import werkzeug diff --git a/odoo/tools/__init__.py b/odoo/tools/__init__.py index 93ab047754679..13c2fd410b95c 100644 --- a/odoo/tools/__init__.py +++ b/odoo/tools/__init__.py @@ -2,21 +2,21 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. import copy -import win32 -import appdirs -from config import config -from misc import * -from convert import * -from translate import * -from graph import graph -from image import * -from amount_to_text import * -from amount_to_text_en import * -from pdf_utils import * -from yaml_import import * -from sql import * -from float_utils import * -from mail import * -from func import * -from debugger import * -from xml_utils import * +from . import win32 +from . import appdirs +from .config import config +from .misc import * +from .convert import * +from .translate import * +from .graph import graph +from .image import * +from .amount_to_text import * +from .amount_to_text_en import * +from .pdf_utils import * +from .yaml_import import * +from .sql import * +from .float_utils import * +from .mail import * +from .func import * +from .debugger import * +from .xml_utils import * diff --git a/odoo/tools/amount_to_text_en.py b/odoo/tools/amount_to_text_en.py index adfda4324b28b..7a7fb5c2ef3f0 100644 --- a/odoo/tools/amount_to_text_en.py +++ b/odoo/tools/amount_to_text_en.py @@ -2,7 +2,7 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging -from translate import _ +from .translate import _ _logger = logging.getLogger(__name__) diff --git a/odoo/tools/appdirs.py b/odoo/tools/appdirs.py index a1650ba5abaf2..f98fa1f8ae357 100644 --- a/odoo/tools/appdirs.py +++ b/odoo/tools/appdirs.py @@ -373,7 +373,11 @@ def _get_win_folder_from_registry(csidl_name): registry for this guarantees us the correct answer for all CSIDL_* names. """ - import _winreg + try: + import winreg as _winreg + except ImportError: + # pylint: disable=bad-python3-import + import _winreg shell_folder_name = { "CSIDL_APPDATA": "AppData", diff --git a/odoo/tools/config.py b/odoo/tools/config.py index 4443bc7e6d7e1..3a227fb514229 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -1,7 +1,10 @@ #odoo.loggers.handlers. -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import ConfigParser +try: + import configparser as ConfigParser +except ImportError: + import ConfigParser import optparse import os import sys @@ -10,7 +13,7 @@ import odoo.loglevels as loglevels import logging import odoo.release as release -import appdirs +from . import appdirs class MyOption (optparse.Option, object): """ optparse Option with two additional attributes. diff --git a/odoo/tools/convert.py b/odoo/tools/convert.py index 3df1d20b50fbb..84dbeec3a5e3d 100644 --- a/odoo/tools/convert.py +++ b/odoo/tools/convert.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import cStringIO +import io import csv import logging import os.path @@ -848,7 +848,7 @@ def convert_csv_import(cr, module, fname, csvcontent, idref=None, mode='init', #remove folder path from model head, model = os.path.split(model) - input = cStringIO.StringIO(csvcontent) #FIXME + input = io.BytesIO(csvcontent) #FIXME reader = csv.reader(input, quotechar='"', delimiter=',') fields = next(reader) diff --git a/odoo/tools/import_email.py b/odoo/tools/import_email.py deleted file mode 100644 index 74029c693eb4f..0000000000000 --- a/odoo/tools/import_email.py +++ /dev/null @@ -1,148 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -import os, sys -import re -import smtplib -import email, mimetypes -from email.header import decode_header -from email.mime.text import MIMEText -import xmlrpclib - -warn_msg = """ -Bonjour, - -Le message avec le sujet "%s" n'a pu être archivé dans l'ERP. - -""".decode('utf-8') - -class EmailParser(object): - - def __init__(self, headers, dispatcher): - self.headers = headers - self.dispatcher = dispatcher - - def parse(self, msg): - dispatcher((self.headers, msg)) - -class CommandDispatcher(object): - - def __init__(self, receiver): - self.receiver = receiver - - def __call__(self, request): - return self.receiver(request) - -class RPCProxy(object): - - def __init__(self, uid, passwd, host='localhost', port=8069, path='object'): - self.rpc = xmlrpclib.ServerProxy('http://%s:%s/%s' % (host, port, path)) - self.user_id = uid - self.passwd = passwd - - def __call__(self, request): - return self.rpc.execute(self.user_id, self.passwd, *request) - -class ReceiverEmail2Event(object): - - email_re = re.compile(r""" - ([a-zA-Z][\w\.-]*[a-zA-Z0-9] # username part - @ # mandatory @ sign - [a-zA-Z0-9][\w\.-]* # domain must start with a letter - \. - [a-z]{2,3} # TLD - ) - """, re.VERBOSE) - - project_re = re.compile(r"^ *\[?(\d{4}\.?\d{0,3})\]?", re.UNICODE) - - - def __init__(self, rpc): - self.rpc = rpc - - def get_addresses(self, headers, msg): - hcontent = '' - for header in [h for h in headers if h in msg]: - hcontent += msg[header] - return self.email_re.findall(hcontent) - - def get_partners(self, headers, msg): - alladdresses = self.get_addresses(headers, msg) - address_ids = self.rpc(('res.partner', 'search', [('email', 'in', alladdresses)])) - addresses = self.rpc(('res.partner', 'read', address_ids)) - return [x['partner_id'][0] for x in addresses] - - def __call__(self, request): - headers, msg = request - partners = self.get_partners(headers, msg) - subject = u'' - for string, charset in decode_header(msg['Subject']): - if charset: - subject += string.decode(charset) - else: - subject += unicode(string) - if partners: - self.save_mail(msg, subject, partners) - else: - warning = MIMEText((warn_msg % (subject,)).encode('utf-8'), 'plain', 'utf-8') - warning['Subject'] = 'Message de OpenERP' - warning['From'] = 'erp@steel-sa.com' - warning['To'] = msg['From'] - s = smtplib.SMTP() - s.connect() - s.sendmail('erp@steel-sa.com', self.email_re.findall(msg['From']), warning.as_string()) - s.close() - - if msg.is_multipart(): - for message in [m for m in msg.get_payload() if m.get_content_type() == 'message/rfc822']: - self((headers, message.get_payload()[0])) - - def save_mail(self, msg, subject, partners): - counter, description = 1, u'' - if msg.is_multipart(): - for part in msg.get_payload(): - stockdir = os.path.join('emails', msg['Message-Id'][1:-1]) - newdir = os.path.join('/tmp', stockdir) - filename = part.get_filename() - if not filename: - ext = mimetypes.guess_extension(part.get_type()) - if not ext: - ext = '.bin' - filename = 'part-%03d%s' % (counter, ext) - - if part.get_content_maintype() == 'multipart': - continue - elif part.get_content_maintype() == 'text': - if part.get_content_subtype() == 'plain': - description += part.get_payload(decode=1).decode(part.get_charsets()[0]) - description += u'\n\nVous trouverez les éventuels fichiers dans le répertoire: %s' % stockdir - continue - else: - description += u'\n\nCe message est en "%s", vous trouverez ce texte dans le répertoire: %s' % (part.get_content_type(), stockdir) - elif part.get_content_type() == 'message/rfc822': - continue - if not os.path.isdir(newdir): - os.mkdir(newdir) - - counter += 1 - fd = open(os.path.join(newdir, filename), 'w') - fd.write(part.get_payload(decode=1)) - fd.close() - else: - description = msg.get_payload(decode=1).decode(msg.get_charsets()[0]) - - project = self.project_re.search(subject) - if project: - project = project.groups()[0] - else: - project = '' - - for partner in partners: - self.rpc(('res.partner.event', 'create', {'name' : subject, 'partner_id' : partner, 'description' : description, 'project' : project})) - - -if __name__ == '__main__': - rpc_dispatcher = CommandDispatcher(RPCProxy(4, 'admin')) - dispatcher = CommandDispatcher(ReceiverEmail2Event(rpc_dispatcher)) - parser = EmailParser(['To', 'Cc', 'From'], dispatcher) - parser.parse(email.message_from_file(sys.stdin)) diff --git a/odoo/tools/lru.py b/odoo/tools/lru.py index b0ea21bba44c6..7c485a039d371 100644 --- a/odoo/tools/lru.py +++ b/odoo/tools/lru.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # taken from http://code.activestate.com/recipes/252524-length-limited-o1-lru-cache-implementation/ import threading -from func import synchronized +from .func import synchronized __all__ = ['LRU'] diff --git a/odoo/tools/misc.py b/odoo/tools/misc.py index d90031e43ebfb..4c570e7cc87bf 100644 --- a/odoo/tools/misc.py +++ b/odoo/tools/misc.py @@ -8,12 +8,10 @@ from functools import wraps import babel -import cPickle -import cProfile from contextlib import contextmanager import datetime import subprocess -import logging +import io import os import passlib.utils import re @@ -23,24 +21,35 @@ import time import werkzeug.utils import zipfile -from cStringIO import StringIO from collections import defaultdict, Iterable, Mapping, MutableSet, OrderedDict from itertools import islice, izip, groupby, repeat from lxml import etree -from which import which +from .which import which from threading import local import traceback import csv from operator import itemgetter +try: + # pylint: disable=bad-python3-import + import cProfile +except ImportError: + import profile as cProfile + +try: + # pylint: disable=bad-python3-import + import cPickle as pickle_ +except ImportError: + import pickle as pickle_ + try: from html2text import html2text except ImportError: html2text = None -from config import config -from cache import * +from .config import config +from .cache import * from .parse_version import parse_version from . import pycompat @@ -227,10 +236,9 @@ def _fileopen(path, mode, basedir, pathinfo, basename=None): zipname = tail zpath = os.path.join(basedir, head + '.zip') if zipfile.is_zipfile(zpath): - from cStringIO import StringIO zfile = zipfile.ZipFile(zpath) try: - fo = StringIO() + fo = io.BytesIO() fo.write(zfile.read(os.path.join( os.path.basename(head), zipname).replace( os.sep, '/'))) @@ -1122,7 +1130,7 @@ def _consteq(str1, str2): class Pickle(object): @classmethod def load(cls, stream, errors=False): - unpickler = cPickle.Unpickler(stream) + unpickler = pickle_.Unpickler(stream) # pickle builtins: str/unicode, int/long, float, bool, tuple, list, dict, None unpickler.find_global = None try: @@ -1133,9 +1141,9 @@ def load(cls, stream, errors=False): @classmethod def loads(cls, text): - return cls.load(StringIO(text)) + return cls.load(io.BytesIO(text)) - dumps = cPickle.dumps - dump = cPickle.dump + dumps = pickle_.dumps + dump = pickle_.dump pickle = Pickle diff --git a/odoo/tools/test_config.py b/odoo/tools/test_config.py index 256e7ba4c32df..045bcaaa9c726 100644 --- a/odoo/tools/test_config.py +++ b/odoo/tools/test_config.py @@ -9,7 +9,7 @@ import os -import config +from . import config config_file_00 = os.path.join(os.path.dirname(__file__),'test-config-values-00.conf') diff --git a/odoo/tools/translate.py b/odoo/tools/translate.py index 75495b4bbaed1..32299d6db14af 100644 --- a/odoo/tools/translate.py +++ b/odoo/tools/translate.py @@ -20,10 +20,9 @@ from lxml import etree import odoo -from odoo.tools import config, pycompat -from odoo.tools.misc import file_open, get_iso_codes, SKIPPED_ELEMENT_TYPES -from odoo.tools.osutil import walksymlinks -from odoo import sql_db, SUPERUSER_ID +from . import config, pycompat +from .misc import file_open, get_iso_codes, SKIPPED_ELEMENT_TYPES +from .osutil import walksymlinks _logger = logging.getLogger(__name__) @@ -337,7 +336,7 @@ def _get_db(self): # find current DB based on thread/worker db name (see netsvc) db_name = getattr(threading.currentThread(), 'dbname', None) if db_name: - return sql_db.db_connect(db_name) + return odoo.sql_db.db_connect(db_name) def _get_cr(self, frame, allow_create=True): # try, in order: cr, cursor, self.env.cr, self.cr, @@ -423,7 +422,7 @@ def __call__(self, source): cr, is_new_cr = self._get_cr(frame) if cr: # Try to use ir.translation to benefit from global cache if possible - env = odoo.api.Environment(cr, SUPERUSER_ID, {}) + env = odoo.api.Environment(cr, odoo.SUPERUSER_ID, {}) res = env['ir.translation']._get_source(None, ('code','sql_constraint'), lang, source) else: _logger.debug('no context cursor detected, skipping translation for "%r"', source) @@ -780,7 +779,7 @@ def handle_text(text, lineno): def trans_generate(lang, modules, cr): - env = odoo.api.Environment(cr, SUPERUSER_ID, {}) + env = odoo.api.Environment(cr, odoo.SUPERUSER_ID, {}) to_translate = set() def push_translation(module, type, name, id, source, comments=None): @@ -1019,7 +1018,7 @@ def trans_load_data(cr, fileobj, fileformat, lang, lang_name=None, verbose=True, if verbose: _logger.info('loading translation file for language %s', lang) - env = odoo.api.Environment(cr, SUPERUSER_ID, context or {}) + env = odoo.api.Environment(cr, odoo.SUPERUSER_ID, context or {}) Lang = env['res.lang'] Translation = env['ir.translation'] @@ -1196,6 +1195,6 @@ def load_language(cr, lang): :param lang: language ISO code with optional _underscore_ and l10n flavor (ex: 'fr', 'fr_BE', but not 'fr-BE') :type lang: str """ - env = odoo.api.Environment(cr, SUPERUSER_ID, {}) + env = odoo.api.Environment(cr, odoo.SUPERUSER_ID, {}) installer = env['base.language.install'].create({'lang': lang}) installer.lang_install() diff --git a/requirements.txt b/requirements.txt index 51325155af2b7..05b1e1bf0e0ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,12 +19,12 @@ psutil==4.3.1 psycogreen==1.0 psycopg2==2.6.2 pydot==1.2.3 +pyldap==2.4.28 pyparsing==2.1.10 pyPdf==1.13 pyserial==3.1.1 Python-Chart==1.39 python-dateutil==2.5.3 -python-ldap==2.4.27 python-openid==2.2.5 pytz==2016.7 pyusb==1.0.0 diff --git a/setup.py b/setup.py index 38001480fbf7c..5fd18a9995155 100644 --- a/setup.py +++ b/setup.py @@ -152,11 +152,11 @@ def py2exe_options(): 'psycopg2 >= 2.2', 'python-chart', 'pydot', + 'pyldap', # optional 'pyparsing', 'pypdf', 'pyserial', 'python-dateutil', - 'python-ldap', # optional 'python-openid', 'pytz', 'pyusb >= 1.0.0b1',