Unlink images on Magento

Bug #682601 reported by Guewen Baconnier @ Camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Won't Fix
Undecided
Raphaël Valyi - http://www.akretion.com

Bug Description

Hello,

When you add an image on a product and use the "Update Images" button on the shop, the images are created on the Magento's products.
But if you delete an image on OpenERP, it remains on Magento.
So here is a patch proposal to delete the Magento's images also.

Thanks,
Guewen

Tags: image
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :
description: updated
Changed in magentoerpconnect:
assignee: nobody → Raphaël Valyi - http://www.akretion.com (rvalyi)
Revision history for this message
Raimon Esteve (www.zikzakmedia.com) (resteve) wrote : Re: [Bug 682601] [NEW] Unlink images on Magento

2010/11/29 Guewen Baconnier @ Camptocamp <email address hidden>:
> When you add an image on a product and use the "Update Images" button on the shop, the images are created on the Magento's products.
> But if you delete an image on OpenERP, it remains on Magento.

It isn't a bug. It's a new feature/blueprint.

Magentoerpconnect only create/update images

line 73: result =
conn.call('catalog_product_attribute_media.update',
line 92: result =
conn.call('catalog_product_attribute_media.create',

if do you like unlink, do you first check all images product and
compare openerp manager. If one image not exist, unlink/remove this
image.

Resource Name: catalog_product_attribute_media

Aliases:

    * product_attribute_media
    * product_media

Methods:

    * catalog_product_attribute_media.currentStore - Set/Get
current store view
    * catalog_product_attribute_media.list - Retrieve product image list
    * catalog_product_attribute_media.info - Retrieve product image
    * catalog_product_attribute_media.types - Retrieve product image types
    * catalog_product_attribute_media.create - Upload new product image
    * catalog_product_attribute_media.update - Update product image
    * catalog_product_attribute_media.remove - Remove product image

--
Raimon Esteve
// OpenERP, gestió empresarial flexible
// Magento, botigues virtuals dinàmiques
// AulaERP, formació online
// easyOERP, tu aplicación OpenERP lista para usar
www.zikzakmedia.com

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hello,

I agree with you, this is a new feature, that is why I posted a proposal.
I'm sorry if I posted it into the bug section if I should have created a blueprint instead.

Here is a corrected patch which checks with the method catalog_product_attribute_media.list if the image still exists on Magento before to drop it.

Thanks
Guewen

Revision history for this message
Kyle Waid (midwest) wrote :

Is this patch integrated? If so please close the report

Changed in magentoerpconnect:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints