~sebastien.beau/magentoerpconnect/oerp6.1-cleanning

« back to all changes in this revision

Viewing changes to magentoerpconnect/wizard/open_product_by_attribut_set.py

  • Committer: Sébastien Beau
  • Date: 2012-12-07 13:18:05 UTC
  • mfrom: (676.2.39 magentoerpconnect)
  • Revision ID: sebastien.beau@akretion.com-20121207131805-o4tgotytj3ku580m
[MERGE] merge with cleaning branch, please do not forget to update dependency, product-extra-addons, openobject-extention, e-commerce-adddons. 

magentoerpconnect :
- REFACTOR
    - refactor the invoice syncronisation 
        2 modules are available, 1 for using Magento Invoice, one for using OpenERP invoice
        moreover if invoice syncronisation failed try to map if an existing one already exist : fonction => map_magento_order 
    - refactor view for compatibility in multi-e-commerce solution
    - NAME REFACTOR : by default use only name if you need to use the lastname and firstname please first update magentoerpconnect and them install magentoerpconnect_partner_surname. DO IT ON A DATABASE TEST BEFORE. If you have any trouble please open a bug on lp
    - use new api for moving the category and updating the stock information

    ADD
        - add reporting when exporting stock level

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#                                                                               #
20
20
#################################################################################
21
21
 
22
 
from osv import fields,osv
23
 
 
24
 
 
25
 
class open_product_by_attribut_set(osv.osv_memory):
 
22
from openerp.osv.orm import TransientModel
 
23
from openerp.osv import fields
 
24
 
 
25
 
 
26
class open_product_by_attribut_set(TransientModel):
26
27
    _name = 'open.product.by.attribut.set'
27
28
    _description = 'Wizard to open product by attributs set'
28
 
 
29
29
    _columns = {
30
30
        'attributs_set':fields.many2one('magerp.product_attribute_set', 'Attributs Set'),
31
31
        }
51
51
        result['domain'] = "[('set', '=', %s)]" % attribute_set.id
52
52
        result['name'] = attribute_set.attribute_set_name
53
53
        return result
54
 
 
55
 
open_product_by_attribut_set()