diff options
| author | Purnendu Singh (OpenERP) <psi@tinyerp.com> | 2012-07-19 18:38:29 +0530 |
|---|---|---|
| committer | Purnendu Singh (OpenERP) <psi@tinyerp.com> | 2012-07-19 18:38:29 +0530 |
| commit | 6be29d4ec29d00aebd0d58d015f0cb360a22bd3a (patch) | |
| tree | df29df50973ebfceede0ae90a26efc07509c5c75 /addons/project_mrp/test | |
| parent | fbe33814e7525b9b174029a6ceea58f4eb810f57 (diff) | |
[IMP] project_mrp: Revert my changes and add the _convert_qty_company_hours method again and improve that
bzr revid: psi@tinyerp.com-20120719130829-ev8rppz2qz0k6tf0
Diffstat (limited to 'addons/project_mrp/test')
| -rw-r--r-- | addons/project_mrp/test/project_task_procurement.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project_mrp/test/project_task_procurement.yml b/addons/project_mrp/test/project_task_procurement.yml index 1b593fe97e1..b72527e61a5 100644 --- a/addons/project_mrp/test/project_task_procurement.yml +++ b/addons/project_mrp/test/project_task_procurement.yml @@ -25,7 +25,7 @@ elif procurement.sale_line_id: account = procurement.sale_line_id.order_id.project_id assert (not project and not account) or project.analytic_account_id == account, "Project does not correspond." - planned_hours = procurement.product_qty + planned_hours = self._convert_qty_company_hours(cr, uid, procurement, context=context) assert task.planned_hours == planned_hours, 'Planned Hours do not correspond.' assert datetime.strptime(task.date_deadline, '%Y-%m-%d') == datetime.strptime(procurement.date_planned, '%Y-%m-%d %H:%M:%S'), 'Deadline does not correspond.' if procurement.product_id.product_manager: |
