← Back to team overview

openerp-india team mailing list archive

[Bug 1039109] Re: project_mrp

 

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1) => (unassigned)

** Changed in: openobject-addons
   Importance: Low => Wishlist

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1039109

Title:
  project_mrp

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Whish list :

  V6.1
  I think it would be interesting to replace task name by the procurement name instead of the product name. The product name could be moved to the task description (to make responsible selection easier).
  The reason is, when you quote a project, you will set the customer requirement in the SO ligne description, even if you use a product for the pricing details. You then want to keep the requirement as a task title.

  
  Code suggestion :
  project_mrp/project_procurment.py

      def action_produce_assign_service(self, cr, uid, ids, context=None):
          project_task = self.pool.get('project.task')
          for procurement in self.browse(cr, uid, ids, context=context):
              project = self._get_project(cr, uid, procurement, context=context)
              planned_hours = self._convert_qty_company_hours(cr, uid, procurement, context=context)
              task_id = project_task.create(cr, uid, {
                  'name': '%s:%s' % (procurement.origin or '', procurement.product_id.name),     ##### => or '', procurement.name)
                  'date_deadline': procurement.date_planned,
                  'planned_hours':planned_hours,
                  'remaining_hours': planned_hours,
                  'user_id': procurement.product_id.product_manager.id,
                  'notes': procurement.note,
                  'procurement_id': procurement.id,
                  'description': procurement.note,                    ###### => procurement.product_id.name
                  'project_id':  project and project.id or False,
                  'company_id': procurement.company_id.id,
              },context=context)
              self.write(cr, uid, [procurement.id], {'task_id': task_id, 'state': 'running'}, context=context)
          return task_id

  
  Regards

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1039109/+subscriptions


References