~allison-miller/openerp-connector-magento/openerp-connector-magento-remove-int-cast-order-increment

« back to all changes in this revision

Viewing changes to magentoerpconnect/connector.py

  • Committer: Guewen Baconnier
  • Date: 2013-08-27 10:35:30 UTC
  • mfrom: (888.3.5 magentoerpconnect)
  • Revision ID: guewen.baconnier@camptocamp.com-20130827103530-exuh7asbmhzh6p2p
[IMP] use the new 'install_in_connector' instead of crafting the AbstractModel ourselves

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
##############################################################################
21
21
 
22
22
from openerp.osv import orm, fields
23
 
from openerp.addons.connector.connector import Environment
 
23
from openerp.addons.connector.connector import (Environment,
 
24
                                                install_in_connector)
24
25
from openerp.addons.connector.checkpoint import checkpoint
25
26
 
26
 
 
27
 
class magentoerpconnect_installed(orm.AbstractModel):
28
 
    """Empty model used to know if the module is installed on the
29
 
    database.
30
 
 
31
 
    If the model is in the registry, the module is installed.
32
 
    """
33
 
    _name = 'magentoerpconnect.installed'
 
27
install_in_connector()
34
28
 
35
29
 
36
30
def get_environment(session, model_name, backend_id):