Unregistering a ConnectorUnit from a backend unregisters even when the addon is not installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Connector |
Fix Released
|
High
|
Guewen Baconnier @ Camptocamp |
Bug Description
Example:
# 7.0-magentoerpc
magento.
[...]
@magento
class ProductImportMa
_model_name = 'magento.
@mapping
def price(self, record):
""" The price is imported at the creation of
the product, then it is only modified and exported
from OpenERP """
return super(ProductIm
Expected:
When the adddon magentoerpconne
Current behavior:
Even if magentoerpconne
Correction proposition:
Remove the ``unregister`` capabilities on the backends.
Add a ``replacing`` when a ConnectorUnit is registered on a backend.
[...]
@magento(
class ProductImportMa
The ConnectorUnit is determined at runtime, with an algorithm as follows:
for each ConnectorUnit registered on the backend
Exclude it if the addons where it is declared is not installed -> if the ConnectorUnit is replaced by another (could be several if many addons) -> append to the candidate list (recursively)
returns the last candidate or an error if many / 0 are found
Related branches
Changed in openerp-connector: | |
importance: | Undecided → Critical |
status: | New → Confirmed |
importance: | Critical → High |
assignee: | nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c) |
Changed in openerp-connector: | |
status: | Incomplete → Fix Released |
information type: | Embargoed → Public |
Not sure if this really happens, I couldn't reproduce it.
However, strongly related to: lp:1187697