~gbaconnier-c2c/magentoerpconnect/magentoerpconnectv6-c2c-product-links

« back to all changes in this revision

Viewing changes to product.py

  • Committer: Sebastien Beau
  • Date: 2010-06-04 14:04:49 UTC
  • Revision ID: sebastien.beau@akretion.com.br-20100604140449-9e7xa96khaguuhbk
[FIX] fixes bug #583675 Multiwebsites are correctly mapped

Show diffs side-by-side

added added

removed removed

Lines of Context:
813
813
            
814
814
        if not product_data.get('status', False):
815
815
            product_data.update({'status': product.active and 1 or 2})
816
 
            
817
 
        if not product_data.get('websites', False):
818
 
            group_shop_ids = self.pool.get('external.shop.group').search(cr,uid,[('referential_id', '=', external_referential_id)])
819
 
            product_data.update({'websites': [x['code'] for x in self.pool.get('external.shop.group').read(cr, uid, group_shop_ids, ['code'])]})
820
816
 
821
817
        if not product_data.get('description', False):
822
818
            product_data.update({'description': product.description or _("description")})