~credativ/credativ-openerp/addons-6.0

« back to all changes in this revision

Viewing changes to mrp_automated/mrp.py

  • Committer: Derek Sheridan
  • Date: 2012-10-25 07:49:04 UTC
  • Revision ID: derek.sheridan@credativ.co.uk-20121025074904-hj7j3pywj3v0z4vi
[IMP] supplier updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
            for move in production.move_lines:
37
37
                # TODO (derek.sheridan@credativ.co.uk): remove hard coding
38
38
                # The supplier of raw material should be from Bremskerl Germany and prodlot_id of stock move should end at FA
39
 
                if move.product_id.seller_ids and move.product_id.seller_ids[0].name.name == 'Bremskerl Reibelagwerke GmbH & CO.KG':
 
39
                if move.product_id.seller_ids and move.product_id.seller_ids[0].name.name == 'BREMSKERL REIBBELAGWERKE GMBH & CO.KG':
40
40
                    if move.prodlot_id and move.prodlot_id.name.endswith('FA'):
41
41
                        prodlot_name += '-' + move.prodlot_id.name
42
42
            finished_prodlot_id = prodlot_obj.create(cr, uid, {