~cag/openerp-usa/cag-6.0-dev

« back to all changes in this revision

Viewing changes to assembly_bom/sale.py

  • Committer: Sinoj Sebastian
  • Date: 2011-06-30 13:53:24 UTC
  • Revision ID: ssebastian@novapointgroup.com-20110630135324-dzbpyf4p2wqxcgjn
assembly bom update

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                if bom_id:
52
52
                    bom_id = bom_id[0]
53
53
                    bom_obj = self.pool.get('mrp.bom').browse(cr, uid, bom_id)
54
 
                if bom_id and (bom_obj.bom_stock_value  < qty * product_obj.uom_id.factor):
 
54
                if bom_id and 'bom_stock_value' in bom_obj._columns.keys() and (bom_obj.bom_stock_value  < qty * product_obj.uom_id.factor):
55
55
                        warning = {
56
56
                            'title': _('Not enough stock !'),
57
57
                            'message': _('You plan to move %.2f %s but you only have %.2f %s available !\nThe real stock is %.2f %s. (without reservations)') %