openerp-connector-community team mailing list archive
-
openerp-connector-community team
-
Mailing list archive
-
Message #00003
Improvements in `connector`: install_in_connector()
Hi,
An improvement has just landed in the head of the connector.
Developers of the connector addons (or customizations of connector
addons) do no longer need to create an AbstractModel, i.e.
class magentoerpconnect_installed(orm.AbstractModel):
_name = 'magentoerpconnect.installed'
This was error-prone and awkward (ConnectorUnit classes not loaded if
the _name was wrong, ...).
Now, this single call in the addons using the connector suffice:
openerp.addons.connector.connector.install_in_connector()
The old syntax is still compatible but should be changed in the existing
addons.
Revision:
openerp-connector:
guewen.baconnier@xxxxxxxxxxxxxx-20130827101247-9gyeac3y0sf7ginh
Example in magentoerpconnect:
https://bazaar.launchpad.net/~openerp-connector-core-editors/openerp-connector/7.0-magentoerpconnect/revision/906
Reference to the issue:
https://bugs.launchpad.net/openerp-connector/+bug/1196859
--
Guewen Baconnier
Business Solutions Software Developer
Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 39
Office: +41 21 619 10 10
http://www.camptocamp.com/