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

« back to all changes in this revision

Viewing changes to mrp_bom_customization/mrp.py

- renamed bom_customization into mrp_bom_customization: indeed it makes it more explicit it's a mrp module, better renaming before it's too late.
- added a few comments, especially about the product_variant_multi dependency which is questionnable

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    _inherit = 'mrp.bom'
37
37
    
38
38
    _columns = { 
39
 
        'bom_customization_keys': fields.many2many('bom_customization.bom_customization_keys', 'mrp_bom_bom_customizations_keys_rel', 'bom_id', 'bom_customization_key_id', 'BoM Customizations'),
 
39
        'mrp_bom_customization_keys': fields.many2many('mrp_bom_customization.mrp_bom_customization_keys', 'mrp_bom_mrp_bom_customizations_keys_rel', 'bom_id', 'mrp_bom_customization_key_id', 'BoM Customizations'),
40
40
    }
41
41
    
42
42
    
43
 
    #FIXME do a cleaner overloading with use of super
 
43
    #FIXME do a cleaner overloading with use of super if possible
44
44
    def _bom_explode(self, cr, uid, bom, factor, properties, addthis=False, level=0):
45
45
        factor = factor / (bom.product_efficiency or 1.0)
46
46
        factor = rounding(factor, bom.product_rounding)