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
=== modified file 'project/project.py'
--- project/project.py 2012-03-02 15:13:47 +0000
+++ project/project.py 2012-06-12 06:34:57 +0000
@@ -149,11 +149,11 @@
149 res[id]['progress_rate'] = 0.0149 res[id]['progress_rate'] = 0.0
150 return res150 return res
151151
152 def unlink(self, cr, uid, ids, *args, **kwargs):152 def unlink(self, cr, uid, ids, context=None):
153 for proj in self.browse(cr, uid, ids):153 for proj in self.browse(cr, uid, ids, context=context):
154 if proj.tasks:154 if proj.tasks:
155 raise osv.except_osv(_('Operation Not Permitted !'), _('You cannot delete a project containing tasks. I suggest you to desactivate it.'))155 raise osv.except_osv(_('Operation Not Permitted !'), _('You cannot delete a project containing tasks. I suggest you to desactivate it.'))
156 return super(project, self).unlink(cr, uid, ids, *args, **kwargs)156 return super(project, self).unlink(cr, uid, ids, context)
157157
158 _columns = {158 _columns = {
159 'complete_name': fields.function(_complete_name, string="Project Name", type='char', size=250),159 'complete_name': fields.function(_complete_name, string="Project Name", type='char', size=250),
160160
=== modified file 'stock/__openerp__.py'
--- stock/__openerp__.py 2012-01-31 13:36:57 +0000
+++ stock/__openerp__.py 2012-06-12 06:34:57 +0000
@@ -30,7 +30,6 @@
3030
31Thanks to the double entry management, the inventory controlling is powerful and flexible:31Thanks to the double entry management, the inventory controlling is powerful and flexible:
32 * Moves history and planning,32 * Moves history and planning,
33 * Different inventory methods (FIFO, LIFO, ...)
34 * Stock valuation (standard or average price, ...)33 * Stock valuation (standard or average price, ...)
35 * Robustness faced with Inventory differences34 * Robustness faced with Inventory differences
36 * Automatic reordering rules (stock level, JIT, ...)35 * Automatic reordering rules (stock level, JIT, ...)