diff --git a/connector_walmart/__manifest__.py b/connector_walmart/__manifest__.py index 08dfe172..8ad9abd9 100644 --- a/connector_walmart/__manifest__.py +++ b/connector_walmart/__manifest__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { diff --git a/connector_walmart/components/backend_adapter.py b/connector_walmart/components/backend_adapter.py index c99d334a..0ce4e0ea 100644 --- a/connector_walmart/components/backend_adapter.py +++ b/connector_walmart/components/backend_adapter.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.addons.component.core import AbstractComponent diff --git a/connector_walmart/components/binder.py b/connector_walmart/components/binder.py index 3bfd3084..63d9002d 100644 --- a/connector_walmart/components/binder.py +++ b/connector_walmart/components/binder.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.addons.component.core import Component diff --git a/connector_walmart/components/exporter.py b/connector_walmart/components/exporter.py index f875076d..903fe59d 100644 --- a/connector_walmart/components/exporter.py +++ b/connector_walmart/components/exporter.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- -# © 2013 Guewen Baconnier,Camptocamp SA,Akretion -# © 2016 Sodexis +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging diff --git a/connector_walmart/components/importer.py b/connector_walmart/components/importer.py index 969b1e5c..776a3f4e 100644 --- a/connector_walmart/components/importer.py +++ b/connector_walmart/components/importer.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). """ @@ -305,7 +305,7 @@ class DelayedBatchImporter(AbstractComponent): # # # find the translatable fields of the model # fields = self.model.fields_get() -# translatable_fields = [field for field, attrs in fields.iteritems() +# translatable_fields = [field for field, attrs in fields.items() # if attrs.get('translate')] # # if mapper is None: @@ -318,7 +318,7 @@ class DelayedBatchImporter(AbstractComponent): # map_record = mapper.map_record(lang_record) # record = map_record.values() # -# data = dict((field, value) for field, value in record.iteritems() +# data = dict((field, value) for field, value in record.items() # if field in translatable_fields) # # binding.with_context(connector_no_export=True, diff --git a/connector_walmart/components/mapper.py b/connector_walmart/components/mapper.py index 1f940723..523bd62a 100644 --- a/connector_walmart/components/mapper.py +++ b/connector_walmart/components/mapper.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.addons.component.core import AbstractComponent diff --git a/connector_walmart/models/account/account_fiscal_position.py b/connector_walmart/models/account/account_fiscal_position.py index 001bacd8..528196f2 100644 --- a/connector_walmart/models/account/account_fiscal_position.py +++ b/connector_walmart/models/account/account_fiscal_position.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +# © 2017,2018 Hibou Corp. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models from odoo.exceptions import ValidationError diff --git a/connector_walmart/models/delivery/common.py b/connector_walmart/models/delivery/common.py index d903e148..6bdc7627 100644 --- a/connector_walmart/models/delivery/common.py +++ b/connector_walmart/models/delivery/common.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import models, fields, api diff --git a/connector_walmart/models/sale_order/common.py b/connector_walmart/models/sale_order/common.py index 17dc742e..3cba6e72 100644 --- a/connector_walmart/models/sale_order/common.py +++ b/connector_walmart/models/sale_order/common.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging diff --git a/connector_walmart/models/sale_order/importer.py b/connector_walmart/models/sale_order/importer.py index 6683fcd1..050fa0b4 100644 --- a/connector_walmart/models/sale_order/importer.py +++ b/connector_walmart/models/sale_order/importer.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging @@ -180,7 +180,7 @@ class SaleOrderImporter(Component): return self.env['res.partner'].create(values) def _partner_matches(self, partner, values): - for key, value in values.iteritems(): + for key, value in values.items(): if key == 'state_id': if value != partner.state_id.id: return False diff --git a/connector_walmart/models/stock_picking/common.py b/connector_walmart/models/stock_picking/common.py index 6fad1e4c..db934af6 100644 --- a/connector_walmart/models/stock_picking/common.py +++ b/connector_walmart/models/stock_picking/common.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging diff --git a/connector_walmart/models/stock_picking/exporter.py b/connector_walmart/models/stock_picking/exporter.py index 72561874..58cfa313 100644 --- a/connector_walmart/models/stock_picking/exporter.py +++ b/connector_walmart/models/stock_picking/exporter.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields diff --git a/connector_walmart/models/walmart_backend/common.py b/connector_walmart/models/walmart_backend/common.py index f178c532..2d4a9f3a 100644 --- a/connector_walmart/models/walmart_backend/common.py +++ b/connector_walmart/models/walmart_backend/common.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/connector_walmart/models/walmart_binding/common.py b/connector_walmart/models/walmart_binding/common.py index c624e011..1f3b4c3a 100644 --- a/connector_walmart/models/walmart_binding/common.py +++ b/connector_walmart/models/walmart_binding/common.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2017 Hibou Corp. +# © 2017,2018 Hibou Corp. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, models, fields