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
=== modified file 'project/project.py'
--- project/project.py 2012-01-09 13:12:05 +0000
+++ project/project.py 2012-01-24 19:46:27 +0000
@@ -1042,6 +1042,11 @@
1042%s resource = %s1042%s resource = %s
1043''' % (ident, 'User_'+str(task.user_id.id))1043''' % (ident, 'User_'+str(task.user_id.id))
10441044
1045 # http://faces.homeip.net/doc/node66.html
1046 priority = 500 + (50 - 10 * int(task.priority))
1047 result += '''%s priority = %s
1048''' % (ident, str(priority))
1049
1045 result += "\n"1050 result += "\n"
1046 return result1051 return result
10471052
10481053
=== modified file 'project_long_term/project_long_term.py'
--- project_long_term/project_long_term.py 2012-01-09 15:33:02 +0000
+++ project_long_term/project_long_term.py 2012-01-24 19:46:27 +0000
@@ -222,6 +222,8 @@
222 context = context or {}222 context = context or {}
223 if type(ids) in (long, int,):223 if type(ids) in (long, int,):
224 ids = [ids]224 ids = [ids]
225 task_pool = self.pool.get('project.task')
226 resource_pool = self.pool.get('resource.resource')
225 projects = self.browse(cr, uid, ids, context=context)227 projects = self.browse(cr, uid, ids, context=context)
226 result = self._schedule_header(cr, uid, ids, context=context)228 result = self._schedule_header(cr, uid, ids, context=context)
227 for project in projects:229 for project in projects:
@@ -256,6 +258,17 @@
256 'date_start': p.start.strftime('%Y-%m-%d %H:%M:%S'),258 'date_start': p.start.strftime('%Y-%m-%d %H:%M:%S'),
257 'date_end': p.end.strftime('%Y-%m-%d %H:%M:%S')259 'date_end': p.end.strftime('%Y-%m-%d %H:%M:%S')
258 }, context=context)260 }, context=context)
261
262 if phase.task_ids:
263 for task in phase.task_ids:
264 if task.state != 'done' and task.state != 'cancelled':
265 vals = {}
266 #Getting values of the Tasks
267 temp = eval("p.Task_%s"%task.id)
268 vals.update({'date_start' : temp.start.strftime('%Y-%m-%d %H:%M:%S')})
269 vals.update({'date_end' : temp.end.strftime('%Y-%m-%d %H:%M:%S')})
270 task_pool.write(cr, uid, task.id, vals, context=context)
271
259 return True272 return True
260project()273project()
261274
262275
=== modified file 'project_long_term/wizard/project_compute_phases.py'
--- project_long_term/wizard/project_compute_phases.py 2011-12-19 16:54:40 +0000
+++ project_long_term/wizard/project_compute_phases.py 2012-01-24 19:46:27 +0000
@@ -26,7 +26,8 @@
26 _description = 'Project Compute Phases'26 _description = 'Project Compute Phases'
27 _columns = {27 _columns = {
28 'target_project': fields.selection([28 'target_project': fields.selection([
29 ('all', 'Compute All My Projects'),29 ('all', 'Compute All Projects'),
30 ('my', 'Compute All My Projects'),
30 ('one', 'Compute a Single Project'),31 ('one', 'Compute a Single Project'),
31 ], 'Schedule', required=True),32 ], 'Schedule', required=True),
32 'project_id': fields.many2one('project.project', 'Project')33 'project_id': fields.many2one('project.project', 'Project')
@@ -49,6 +50,8 @@
4950
50 if data['target_project'] == 'one':51 if data['target_project'] == 'one':
51 project_ids = [data['project_id'][0]]52 project_ids = [data['project_id'][0]]
53 elif data['target_project'] == 'all':
54 project_ids = project_pool.search(cr, uid, [('state', '!=', 'template')], context=context)
52 else:55 else:
53 project_ids = project_pool.search(cr, uid, [('user_id','=',uid)], context=context)56 project_ids = project_pool.search(cr, uid, [('user_id','=',uid)], context=context)
5457
5558
=== modified file 'project_long_term/wizard/project_compute_phases_view.xml'
--- project_long_term/wizard/project_compute_phases_view.xml 2011-10-27 21:11:24 +0000
+++ project_long_term/wizard/project_compute_phases_view.xml 2012-01-24 19:46:27 +0000
@@ -11,7 +11,7 @@
11 <group colspan="4" col="4">11 <group colspan="4" col="4">
12 <separator colspan="4" string="Schedule Phases" />12 <separator colspan="4" string="Schedule Phases" />
13 <field name="target_project" colspan="4"/>13 <field name="target_project" colspan="4"/>
14 <field name="project_id" colspan="4" attrs="{'invisible':[('target_project','=','all')], 'required':[('target_project','!=','all')]}"/>14 <field name="project_id" colspan="4" attrs="{'invisible':['|',('target_project','=','all'),('target_project','=','my')], 'required':[('target_project','!=','all'),('target_project','!=','my')]}"/>
15 <separator colspan="4"/>15 <separator colspan="4"/>
16 <group colspan="2" col="2">16 <group colspan="2" col="2">
17 </group>17 </group>

Subscribers

People subscribed via source and target branches

to all changes: