Пример #1
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    Author: Leonardo Pistone
#    Copyright 2014 Camptocamp SA
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
"""Generic File Import Backend."""


from openerp.addons.connector import backend


file_import = backend.Backend('file_import')
file_import_1 = backend.Backend(parent=file_import, version="1")
Пример #2
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    Copyright 2014 credativ Ltd
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import openerp.addons.connector.backend as backend

bots = backend.Backend('bots')
""" Generic Bots Backend """

bots_3_1_0 = backend.Backend(parent=bots, version='3.1.0')
""" Bots 3.1.0 Backend """
Пример #3
0
# -*- coding: utf-8 -*-
###############################################################################
#
#   prestashoperpconnect_customize_example for OpenERP
#   Copyright (C) 2013 Akretion (http://www.akretion.com).
#   @author Sébastien BEAU <*****@*****.**>
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU Affero General Public License as
#   published by the Free Software Foundation, either version 3 of the
#   License, or (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU Affero General Public License for more details.
#
#   You should have received a copy of the GNU Affero General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################

import openerp.addons.connector.backend as backend
import openerp.addons.prestashoperpconnect.backend as prestashop_backend

prestashop_myversion = backend.Backend(
    parent=prestashop_backend.prestashop1500, version='1.5-myversion')
Пример #4
0
# -*- coding: utf-8 -*-
#
#
#    Tech-Receptives Solutions Pvt. Ltd.
#    Copyright (C) 2009-TODAY Tech-Receptives(<http://www.techreceptives.com>).
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
#

import openerp.addons.connector.backend as backend

woo = backend.Backend('woo')
""" Generic woo Backend """

woov2 = backend.Backend(parent=woo, version='v2')
""" WooCommerce Backend for version v2 """
Пример #5
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    Author: Raphaël Valyi
#    Copyright 2013 Akretion LTDA
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import openerp.addons.connector.backend as backend

solr = backend.Backend('solr')
""" Generic Apache SolR Backend """

solr3_4 = backend.Backend(parent=solr, version='3-4')
""" Apache SolR 3 and 4"""
Пример #6
0
# -*- coding: utf-8 -*-
import openerp.addons.connector.backend as backend
import openerp.addons.magentoerpconnect.backend as magento_backend

magento_myversion = backend.Backend(parent=magento_backend.magento1700,
                                    version='1.9.0.1')
Пример #7
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    Author: Guewen Baconnier
#    Copyright 2013 Camptocamp SA
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import openerp.addons.connector.backend as backend

magento = backend.Backend('magento')
""" Generic Magento Backend """

magento1700 = backend.Backend(parent=magento, version='1.7')
""" Magento Backend for version 1.7 """
Пример #8
0
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import openerp.addons.connector.backend as backend

prestashop = backend.Backend('prestashop')
# version < 1.6.0.9
prestashop_1_5_0_0 = backend.Backend(parent=prestashop, version='1.5')
# version 1.6.0.9 - 1.6.0.10
prestashop_1_6_0_9 = backend.Backend(parent=prestashop, version='1.6.0.9')
# version >= 1.6.0.11
prestashop_1_6_0_11 = backend.Backend(parent=prestashop, version='1.6.0.11')
# version >= 1.6.1.2
prestashop_1_6_1_2 = backend.Backend(parent=prestashop, version='1.6.1.2')
Пример #9
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    Prestashoperpconnect : OpenERP-PrestaShop connector
#    Copyright (C) 2013 Akretion (http://www.akretion.com/)
#    @author: Alexis de Lattre <*****@*****.**>
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import openerp.addons.connector.backend as backend

prestashop = backend.Backend('prestashop')
prestashop1600 = backend.Backend(parent=prestashop, version='1.6')
Пример #10
0
# -*- coding: utf-8 -*-
#
#
#    Tech-Receptives Solutions Pvt. Ltd.
#    Copyright (C) 2009-TODAY Tech-Receptives(<http://www.techreceptives.com>).
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
#

import openerp.addons.connector.backend as backend

Ymk = backend.Backend('Ymk')
""" Generic Ymk Backend """

Ymkv2 = backend.Backend(parent=Ymk, version='v2')
""" YmkCommerce Backend for version v2 """
Пример #11
0
# -*- coding: utf-8 -*-

import openerp.addons.connector.backend as backend
import openerp.addons.connector_logistics_center.backend as logistic_backend
from .output import BACKEND_VERSION


logistic_bleckmann = backend.Backend(
    parent=logistic_backend.logistic_base, version=BACKEND_VERSION)
Пример #12
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    OpenERP, Open Source Management Solution
#    Copyright (C) 2017 Solucións Aloxa S.L. <*****@*****.**>
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import openerp.addons.connector.backend as backend

wubook = backend.Backend('wubook')

wubook_base = backend.Backend(parent=wubook, version='1.0')
Пример #13
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    Authors: Guewen Baconnier, Oliver Görtz
#    Copyright 2013 Camptocamp SA, Oliver Görtz
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import openerp.addons.connector.backend as backend

shopware = backend.Backend('shopware')
""" Generic Shopware Backend """

shopware5200 = backend.Backend(parent=shopware, version='5.2')
""" Shopware Backend for version 5.2 """
Пример #14
0
# -*- coding: utf-8 -*-
from openerp import fields, models, api
import openerp.addons.connector.backend as backend

# Global variables to make the backend globally available
getresponse = backend.Backend('getresponse')
""" Generic GetResponse Backend """

getresponse_v3 = backend.Backend(parent=getresponse, version='v3')
""" GetResponse Backend for API version 3.0 """
Пример #15
0
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import openerp.addons.connector.backend as backend

prestashop = backend.Backend('prestashop')
# version < 1.6.0.9
prestashop1500 = backend.Backend(parent=prestashop, version='1.5')
# version 1.6.0.9 - 1.6.0.10
prestashop1609 = backend.Backend(parent=prestashop, version='1.6.0.9')
# version >= 1.6.0.11
prestashop16011 = backend.Backend(parent=prestashop, version='1.6.0.11')
prestashop1612 = backend.Backend(parent=prestashop, version='1.6.1.2')
Пример #16
0
# -*- coding: utf-8 -*-
import openerp.addons.connector.backend as backend

taktik_importer = backend.Backend('taktik_importer')
taktik_importer_backend = backend.Backend(parent=taktik_importer,
                                          version='1.0.0')
Пример #17
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    Copyright 2014 credativ Ltd
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import openerp.addons.connector.backend as backend

highjump = backend.Backend('highjump')
""" Generic High Jump Backend """

highjump_seko = backend.Backend(parent=highjump, version='seko')
""" High Jump Backend for Seko """
Пример #18
0
# coding: utf-8
# © 2015 David BEAL @ Akretion
# © 2015 Sebastien BEAU @ Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

import openerp.addons.connector.backend as backend


logistic = backend.Backend('logistic')
""" Generic Logistic Backend """

logistic_base = backend.Backend(
    parent=logistic, version='logistic_base')
""" Logistic Backend for version 0 """
# -*- coding: utf-8 -*-
###############################################################################
#
#   Module for Odoo
#   Copyright (C) 2015-TODAY Akretion (http://www.akretion.com).
#   @author Sylvain Calador <*****@*****.**>
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU Affero General Public License as
#   published by the Free Software Foundation, either version 3 of the
#   License, or (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU Affero General Public License for more details.
#
#   You should have received a copy of the GNU Affero General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################

import openerp.addons.connector.backend as backend

google_spreadsheet = backend.Backend('google_spreadsheet')
""" Generic Google Spreadsheet Backend """

google_spreadsheet_base = backend.Backend(parent=google_spreadsheet,
                                          version='3.0')
""" Google Spreadsheet Backend fo version 3.0 """
Пример #20
0
                res.append({
                    'id': None,
                    'name': field,
                    'string': label,
                    'required': False,
                    'fields': [],
                })

        return res


class ImportMapperBase(ImportMapper):
    _map_fields = []


base_import = backend.Backend('base_import_mapping')
"""  Backend Base Import """

base_import_base = backend.Backend(parent=base_import, version='1.0')
""" Backend Base Import version 1.0 """


class BackendBaseImport(models.Model):
    _name = 'backend.base.import'
    _description = 'Base Import Backend'
    _inherit = 'connector.backend'

    _backend_type = 'base_import_mapping'

    @classmethod
    def get_mapper(cls, env, model):
Пример #21
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    OpenERP, Open Source Management Solution
#    This module copyright (C) 2014 Savoir-faire Linux
#    (<http://www.savoirfairelinux.com>).
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import openerp.addons.connector.backend as backend

cmis = backend.Backend('cmis')
""" Generic CMIS Backend """

cmis1000 = backend.Backend(parent=cmis, version='1.0')
""" CMIS Backend for version 1.0 """
Пример #22
0
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import openerp.addons.connector.backend as backend

tienda_nube = backend.Backend('tienda_nube')
# version < 1.6.0.9
tienda_nube1500 = backend.Backend(parent=tienda_nube, version='1.5')
# version 1.6.0.9 - 1.6.0.10
tienda_nube1609 = backend.Backend(parent=tienda_nube, version='1.6.0.9')
# version >= 1.6.0.11
tienda_nube16011 = backend.Backend(parent=tienda_nube, version='1.6.0.11')
tienda_nube1612 = backend.Backend(parent=tienda_nube, version='1.6.1.2')
Пример #23
0
# -*- coding: utf-8 -*-
import openerp.addons.connector.backend as backend

civicrm = backend.Backend('civicrm')
""" Generic civicrm Backend """

civicrm7 = backend.Backend(parent=civicrm, version='7.0')
""" civicrm Backend for OpenERP 7 """
Пример #24
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    Author: Agustín Cruz Lozano
#    Copyright 2015 OpenPyme SA
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import openerp.addons.connector.backend as backend


drupal = backend.Backend('drupal')
""" Generic Drupal Backend """

drupal7 = backend.Backend(parent=drupal, version='7')
""" Drupal Backend for version 7 """
Пример #25
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    Prime Catalog Connector
#    Copyright (C) 2017 Progforce, LLC (<http://progforce.com/>).
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Lesser General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from __future__ import absolute_import
import openerp.addons.connector.backend as backend

prime_catalog = backend.Backend('prime_catalog')
prime_catalog = backend.Backend(parent=prime_catalog, version='0.1')
Пример #26
0
# -*- coding: utf-8 -*-
import openerp.addons.connector.backend as backend
import openerp.addons.magentoerpconnect.backend as magento_backend

magento_myversion = backend.Backend(parent=magento_backend.magento1700,
                                    version='1.7-myversion')
Пример #27
0
# -*- coding: utf-8 -*-
# © 2014 Elico Corp (https://www.elico-corp.com)
# Licence AGPL-3.0 or later(http://www.gnu.org/licenses/agpl.html)


import openerp.addons.connector.backend as backend


icops = backend.Backend('icops')
""" Generic ICOPS Backend """

icops7 = backend.Backend(parent=icops, version='7.0')
""" ICOPS Backend for OpenERP 7 """
Пример #28
0
# -*- coding: utf-8 -*-
##############################################################################
#
#    Copyright 2015 - Danimar Ribeiro <*****@*****.**>
#    Copyright 2015 - Trust-Code - www.trustcode.com.br
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import openerp.addons.connector.backend as backend

woo = backend.Backend('woo')
woo2311 = backend.Backend(parent=woo, version='2.3.11')


Пример #29
0
# -*- coding: utf-8 -*-

import openerp.addons.connector.backend as backend

odoo = backend.Backend('odoo')
""" Generic Odoo Backend """

odoo_8_0 = backend.Backend(parent=odoo, version='8.0')
""" Odoo Backend for version 8.0 """

odoo_9_0 = backend.Backend(parent=odoo, version='9.0')
""" Odoo Backend for version 9.0 """

odoo_10_0 = backend.Backend(parent=odoo, version='10.0')
""" Odoo Backend for version 10.0 """
Пример #30
0
# -*- coding: utf-8 -*-
# © 2015 Malte Jacobi (maljac @ github)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import openerp.addons.connector.backend as backend

oc_odoo = backend.Backend('odoo')
oc_odoo900 = backend.Backend(parent=oc_odoo, version='900')
oc_odoo800 = backend.Backend(parent=oc_odoo, version='800')
oc_odoo700 = backend.Backend(parent=oc_odoo, version='700')