~openerp-commiter/openobject-addons/trunk-extra-addons

« back to all changes in this revision

Viewing changes to bom_customization/stock.py

  • Committer: Fabien Pinckaers
  • Date: 2009-04-03 06:41:23 UTC
  • mfrom: (3598.3.43 trunk-extra-addons)
  • Revision ID: fp@tinyerp.com-20090403064123-ccsg8hp3k3rxodeu
adding_fermedusart_modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
            
47
47
            sol_id = res[0][0]
48
48
            
 
49
            if not sol_id:
 
50
#                raise osv.except_osv(_('No sale order line found !'),
 
51
#                              _('Save your quotation first.'))
 
52
                result[id] = False
 
53
                continue
 
54
            
49
55
            req = """ SELECT cus.customization_key_id, grp.name, val.name 
50
56
                        FROM bom_customization_sale_order_line_customizations cus,
51
57
                             bom_customization_bom_customization_values val,
79
85
    _columns = { 
80
86
        'bom_id': fields.many2one('mrp.bom', 'Origin bom line'),
81
87
        'production_orders': fields.many2many('mrp.production', 'mrp_production_move_ids', 'move_id', 'production_id', 'Production Order'),
82
 
        'list_customizations': fields.function(list_customizations, string="List of Customizations", method=True, type="char", store=True, size=64),
 
88
        'list_customizations': fields.function(list_customizations, string="List of Customizations", method=True, type="char", store=True, size=64, select=True),
83
89
    }
84
90
stock_move()
 
 
b'\\ No newline at end of file'