Update and normalize copyright on connector_walmart and replace "iteritems" with "items" for dictionary compatibility.

This commit is contained in:
Jared Kipe
2018-07-07 15:09:18 -07:00
parent b04753698e
commit bf9dc80766
14 changed files with 18 additions and 17 deletions

View File

@@ -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).
{

View File

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

View File

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

View File

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

View File

@@ -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,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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