~vauxoo/addons-vauxoo/7.0-purchase_requisition_contract_analyst-dev-1482-kty

« back to all changes in this revision

Viewing changes to mrp_default_location/mrp.py

  • Committer: Jose Morales
  • Date: 2013-05-16 15:44:16 UTC
  • mfrom: (544.1.9 addons-vauxoo)
  • Revision ID: jose@vauxoo.com-20130516154416-eago8zbxslb2scq8
 
[MERGE] Added new features in the user_story module to make easy the user story management, these improvements are:
         [IMP] Added a priority field in the user story to define the priority level for each user story for ease of handling and delivery
         [IMP] Added filter to show user story for priority level
         [IMP] Added automatically project in the task when you create a new task from user story view, this project is the seted in the user story
         [IMP] Added filter to show user story for state, to ease the user story management
         [IMP] Added sum in the planned hours field to control, the hours used for each user story, for we can see the progress in any project easily
         [IMP] Added translations in the user_story module
         [IMP] Added branch to clone field in the project task module
         
       [MERGE] Merge from trunk to apply pep8 and V7 migrate in all modules
       

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        if product_id:
45
45
            product = self.pool.get('product.product').browse(
46
46
                cr, uid, product_id, context=context)
47
 
            res['value'].update({'location_src_id': product.categ_id and product.categ_id.location_src_id.id or False,
48
 
                                 'location_dest_id': product.categ_id and product.categ_id.location_dest_id.id or False})
 
47
            res['value'].update({
 
48
                'location_src_id': product.categ_id and
 
49
                                product.categ_id.location_src_id.id or False,
 
50
                'location_dest_id': product.categ_id and
 
51
                                product.categ_id.location_dest_id.id or False})
49
52
        else:
50
53
            res['value'].update({'location_src_id': False,
51
54
                                 'location_dest_id': False})
52
55
        return res
53