Merge lp:~openerp-dev/openobject-addons/6.1-opw-575741-han into lp:openobject-addons/6.1

Proposed by Hardik Ansodariya (OpenERP)
Status: Approved
Approved by: Vinay Rana (OpenERP)
Approved revision: 6809
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-575741-han
Merge into: lp:openobject-addons/6.1
Diff against target: 30 lines (+3/-4)
2 files modified
project/project.py (+3/-3)
stock/__openerp__.py (+0/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-575741-han
Reviewer Review Type Date Requested Status
Vinay Rana (OpenERP) (community) Approve
Naresh(OpenERP) Pending
Review via email: mp+109777@code.launchpad.net

Description of the change

Hello,

project.py: I have removed *args and **keargs from unlink method and add context as it was not able to translate.

Referencing Maintenance case: 575741

Thanks

To post a comment you must log in.
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

The provided patch fixes the issue.

review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-575741-port-mma/+merge/132471 and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

6809. By Hardik Ansodariya (OpenERP)

[FIX] project: Removed *args and **kwargs from unlink method and add context as it was not able to translate (Maintanence Case: 575741)

6808. By Hardik Ansodariya (OpenERP)

[IMP] Removed the string [Different inventory methods (FIFO, LIFO, ...)] from description as FIFO and LIFO methos is not available in current version of OpenERP

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-03-02 15:13:47 +0000
3+++ project/project.py 2012-06-12 06:34:57 +0000
4@@ -149,11 +149,11 @@
5 res[id]['progress_rate'] = 0.0
6 return res
7
8- def unlink(self, cr, uid, ids, *args, **kwargs):
9- for proj in self.browse(cr, uid, ids):
10+ def unlink(self, cr, uid, ids, context=None):
11+ for proj in self.browse(cr, uid, ids, context=context):
12 if proj.tasks:
13 raise osv.except_osv(_('Operation Not Permitted !'), _('You cannot delete a project containing tasks. I suggest you to desactivate it.'))
14- return super(project, self).unlink(cr, uid, ids, *args, **kwargs)
15+ return super(project, self).unlink(cr, uid, ids, context)
16
17 _columns = {
18 'complete_name': fields.function(_complete_name, string="Project Name", type='char', size=250),
19
20=== modified file 'stock/__openerp__.py'
21--- stock/__openerp__.py 2012-01-31 13:36:57 +0000
22+++ stock/__openerp__.py 2012-06-12 06:34:57 +0000
23@@ -30,7 +30,6 @@
24
25 Thanks to the double entry management, the inventory controlling is powerful and flexible:
26 * Moves history and planning,
27- * Different inventory methods (FIFO, LIFO, ...)
28 * Stock valuation (standard or average price, ...)
29 * Robustness faced with Inventory differences
30 * Automatic reordering rules (stock level, JIT, ...)