Merge lp:~openerp-community/openobject-addons/fix_726185_trunk into lp:openobject-addons

Proposed by Lorenzo Battistini
Status: Needs review
Proposed branch: lp:~openerp-community/openobject-addons/fix_726185_trunk
Merge into: lp:openobject-addons
Diff against target: 82 lines (+23/-2)
4 files modified
project/project.py (+5/-0)
project_long_term/project_long_term.py (+13/-0)
project_long_term/wizard/project_compute_phases.py (+4/-1)
project_long_term/wizard/project_compute_phases_view.xml (+1/-1)
To merge this branch: bzr merge lp:~openerp-community/openobject-addons/fix_726185_trunk
Reviewer Review Type Date Requested Status
OpenERP R&D Addons Team 1 Pending
OpenERP Core Team Pending
Review via email: mp+88996@code.launchpad.net
To post a comment you must log in.
6357. By Vo Minh Thu

[MERGE] changes required for the "import hook" commit in the server.

6358. By Quentin (OpenERP) <email address hidden>

[MERGE] lp:915426

6359. By Quentin (OpenERP) <email address hidden>

[MERGE] lp:916704

6360. By Vo Minh Thu

[MERGE] tools.literal_eval -> ast.literal_eval (as we drop python 2.5 support).

6361. By Olivier Dony (Odoo)

[FIX] email_template: properly pass target model in composition wizard reloading action

This fixes reloading of the composition wizard after selecting
templating options in the new web client.

6362. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6363. By Vo Minh Thu

[FIX] document_ftp: break self-import (which is causing a segfault since the import-hook has been merged in the server).

6364. By Olivier Dony (Odoo)

[FIX] report_webkit: avoid using report name in temp file path, breaks with non-ASCII (translated) report names

6365. By Olivier Dony (Odoo)

[FIX] report_webkit: translations lookup should ignore report name for webkit reports

Webkit/Mako translations are quite different from RML
report translations, and very similar to translations
for Python code terms, i.e. with _(). The method to
lookup the translations at rendering time should thus
be similar to what _() does for Python code terms, and
not depend on the name of the report, which is not
known when exporting the translation template, and is
therefore not available in POT meta-data.
This bears no performance penalty, as we are still
only looking inside 'report'-typed translations with
the matching 'source term'.
The only downside is that this prevents per-report
translations, but this is not supported by our
translation import/export system anyway, so it
does not matter (msgid strings must be unique
within a PO file, and we don't support context-
sensitive PO files yet).

6366. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6367. By Quentin (OpenERP) <email address hidden>

[FIX+REF] account_analytic_analysis: fixed the dependancies and a bug related to wrong computation of is_overdue_quantity that was also counting the sales/purchases made instead of only considering the timesheet entries. Refactoring: 200 lines removed, as they were useless since commit 6305 (removal of consolidation on all fields), and as they were filthy and error prone since they were written -_-

6368. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6369. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6370. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6371. By Raphael Collet (OpenERP)

[MERGE] auction: view fixes

6372. By Raphael Collet (OpenERP)

[MERGE] crm: add missing partner email when creating opportunity

6373. By Raphael Collet (OpenERP)

[MERGE] document: remove group restriction from menu Document > Configuration

6374. By Fabien (Open ERP)

[IMP] product required in PO line

6375. By Olivier Dony (Odoo)

[REV] plugin_outlook: partial revert of accidental certificate removal in previous revision

6376. By Olivier Dony (Odoo)

[MERGE] l10n_nl: fix NL Chart of Account definition (prevented installation), courtesy of Stefan Rijnhart (Therp)

This includes fixing several apparent copy/paste
errors, as well as the type of Debtors and Creditors
accounts

6377. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6378. By Raphael Collet (OpenERP)

[MERGE] import_google: fix external_id_field in import wizard

6379. By Raphael Collet (OpenERP)

[MERGE] lp:912623 (account: fix default date in wizard closing fiscal year)

6380. By Raphael Collet (OpenERP)

[MERGE] lp:885387 (hr_attendance: fix code that checks alternance of sign-in/sign-out)

6381. By Raphael Collet (OpenERP)

[MERGE] purchase: refactor onchange_product_id, stock: add test case

6382. By Raphael Collet (OpenERP)

[MERGE] delivery: increase size of character field

6383. By Lorenzo Battistini

[MERGE] fix_726185_trunk

6384. By Lorenzo Battistini

[IMP] considering priorities in tasks scheduling

Unmerged revisions

6384. By Lorenzo Battistini

[IMP] considering priorities in tasks scheduling

6383. By Lorenzo Battistini

[MERGE] fix_726185_trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'project/project.py'
2--- project/project.py 2012-01-09 13:12:05 +0000
3+++ project/project.py 2012-01-24 19:46:27 +0000
4@@ -1042,6 +1042,11 @@
5 %s resource = %s
6 ''' % (ident, 'User_'+str(task.user_id.id))
7
8+ # http://faces.homeip.net/doc/node66.html
9+ priority = 500 + (50 - 10 * int(task.priority))
10+ result += '''%s priority = %s
11+''' % (ident, str(priority))
12+
13 result += "\n"
14 return result
15
16
17=== modified file 'project_long_term/project_long_term.py'
18--- project_long_term/project_long_term.py 2012-01-09 15:33:02 +0000
19+++ project_long_term/project_long_term.py 2012-01-24 19:46:27 +0000
20@@ -222,6 +222,8 @@
21 context = context or {}
22 if type(ids) in (long, int,):
23 ids = [ids]
24+ task_pool = self.pool.get('project.task')
25+ resource_pool = self.pool.get('resource.resource')
26 projects = self.browse(cr, uid, ids, context=context)
27 result = self._schedule_header(cr, uid, ids, context=context)
28 for project in projects:
29@@ -256,6 +258,17 @@
30 'date_start': p.start.strftime('%Y-%m-%d %H:%M:%S'),
31 'date_end': p.end.strftime('%Y-%m-%d %H:%M:%S')
32 }, context=context)
33+
34+ if phase.task_ids:
35+ for task in phase.task_ids:
36+ if task.state != 'done' and task.state != 'cancelled':
37+ vals = {}
38+ #Getting values of the Tasks
39+ temp = eval("p.Task_%s"%task.id)
40+ vals.update({'date_start' : temp.start.strftime('%Y-%m-%d %H:%M:%S')})
41+ vals.update({'date_end' : temp.end.strftime('%Y-%m-%d %H:%M:%S')})
42+ task_pool.write(cr, uid, task.id, vals, context=context)
43+
44 return True
45 project()
46
47
48=== modified file 'project_long_term/wizard/project_compute_phases.py'
49--- project_long_term/wizard/project_compute_phases.py 2011-12-19 16:54:40 +0000
50+++ project_long_term/wizard/project_compute_phases.py 2012-01-24 19:46:27 +0000
51@@ -26,7 +26,8 @@
52 _description = 'Project Compute Phases'
53 _columns = {
54 'target_project': fields.selection([
55- ('all', 'Compute All My Projects'),
56+ ('all', 'Compute All Projects'),
57+ ('my', 'Compute All My Projects'),
58 ('one', 'Compute a Single Project'),
59 ], 'Schedule', required=True),
60 'project_id': fields.many2one('project.project', 'Project')
61@@ -49,6 +50,8 @@
62
63 if data['target_project'] == 'one':
64 project_ids = [data['project_id'][0]]
65+ elif data['target_project'] == 'all':
66+ project_ids = project_pool.search(cr, uid, [('state', '!=', 'template')], context=context)
67 else:
68 project_ids = project_pool.search(cr, uid, [('user_id','=',uid)], context=context)
69
70
71=== modified file 'project_long_term/wizard/project_compute_phases_view.xml'
72--- project_long_term/wizard/project_compute_phases_view.xml 2011-10-27 21:11:24 +0000
73+++ project_long_term/wizard/project_compute_phases_view.xml 2012-01-24 19:46:27 +0000
74@@ -11,7 +11,7 @@
75 <group colspan="4" col="4">
76 <separator colspan="4" string="Schedule Phases" />
77 <field name="target_project" colspan="4"/>
78- <field name="project_id" colspan="4" attrs="{'invisible':[('target_project','=','all')], 'required':[('target_project','!=','all')]}"/>
79+ <field name="project_id" colspan="4" attrs="{'invisible':['|',('target_project','=','all'),('target_project','=','my')], 'required':[('target_project','!=','all'),('target_project','!=','my')]}"/>
80 <separator colspan="4"/>
81 <group colspan="2" col="2">
82 </group>

Subscribers

People subscribed via source and target branches

to all changes: