Merge lp:~openerp-dev/openobject-server/6.0-opw-56037-msh into lp:openobject-server/6.0

Proposed by Mohammed Shekha(Open ERP)
Status: Merged
Approved by: Naresh(OpenERP)
Approved revision: 3560
Merged at revision: 3583
Proposed branch: lp:~openerp-dev/openobject-server/6.0-opw-56037-msh
Merge into: lp:openobject-server/6.0
Diff against target: 12 lines (+1/-1)
1 file modified
bin/addons/base/res/res_log.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-server/6.0-opw-56037-msh
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+87465@code.launchpad.net

Description of the change

Hello,

Fixed the issue of res_log which was not working in incoming shipment while opening the log from web-client.

Demo:- Create one PO with "From Picking" as inventory control, convert it to "Convert to Purchase Order", Now go to warehouse and open incoming shipment for that PO and proces it, create invoice.

Now you will see new tab will be opened for invoice but there will be log link in old tab which is not working, it gives traceback.

Reason:- The reason is we have character field for context in res.log object which has size=250 and context is comig more 250 characters so whole character is not stored that's why we are getting traceback in web-client when try to open it in web-client.

Thanks.

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/base/res/res_log.py'
2--- bin/addons/base/res/res_log.py 2010-12-08 17:03:50 +0000
3+++ bin/addons/base/res/res_log.py 2012-01-04 12:10:41 +0000
4@@ -27,7 +27,7 @@
5 'name': fields.char('Message', size=250, help='The logging message.', required=True, select=1),
6 'user_id': fields.many2one('res.users','User'),
7 'res_model': fields.char('Object', size=128, select=1),
8- 'context': fields.char('Context', size=250),
9+ 'context': fields.text('Context'),
10 'res_id': fields.integer('Object ID'),
11 'secondary': fields.boolean('Secondary Log', help='Do not display this log if it belongs to the same object the user is working on'),
12 'create_date': fields.datetime('Creation Date', readonly=True, select=1),