export product when a price list is linked to store failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magento OpenERP Connector |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
export product when a price list is linked to a webstore failed.
This patch should do the trick :
=== modified file 'product.py'
--- product.py 2010-01-02 23:52:38 +0000
+++ product.py 2010-01-14 12:58:00 +0000
@@ -738,6 +738,8 @@
if not product_
+ if isinstance(
+ pl_default_id = [pl_default_id]
if not product_
=== modified file 'product.py'
--- product.py 2010-01-02 23:52:38 +0000
+++ product.py 2010-01-14 12:58:00 +0000
@@ -738,6 +738,8 @@
if not product_ data.get( 'price' , False):
pl_ default_ id = shop.pricelist_id and shop.pricelist_ id.id or self.pool. get('product. pricelist' ).search( cr, uid, [('type', '=', 'sale')]) pl_default_ id, int) :
product_ data.update( {'price' : self.pool. get('product. pricelist' ).price_ get(cr, uid, pl_default_id, product.id, 1.0)[pl_ default_ id[0]]} )
+ if isinstance(
+ pl_default_id = [pl_default_id]
if not product_ data.get( 'tax_class_ id', False):