Merge lp:~openerp-dev/openobject-addons/trunk-bug-1079548-sgo into lp:openobject-addons

Proposed by Sanjay Gohel (Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1079548-sgo
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
procurement/procurement.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1079548-sgo
Reviewer Review Type Date Requested Status
Guewen Baconnier @ Camptocamp (community) Needs Fixing
Lionel Sausin - Initiatives/Numérigraphe (community) Approve
OpenERP Core Team Pending
Review via email: mp+137482@code.launchpad.net

Description of the change

Hello,

       Increase message field size as per good coding convention.

Thank You.
Sanjay Gohel(SGO)

To post a comment you must log in.
Revision history for this message
Lionel Sausin - Initiatives/Numérigraphe (ls-initiatives) wrote :

It fixes a bug with long messages, particularly useful when localized in a verbose language.

review: Approve
Revision history for this message
Lionel Sausin - Initiatives/Numérigraphe (ls-initiatives) wrote :

The commit does not have a link to the Launchpad bug number.
It would be nice to un-commit and re-commit with "--fixes"

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Quoting myself from the OCB's branch:

The size argument could be entirely removed, it is no longer required since the version 7.0.
It should be used when there is a reason to restrict the length of a field (e.g. ean13), there is no reason to do so here (varchar and text are the same thing under the hood, so the limitation won't bring better performance [0]).

Thanks

[0] http://stackoverflow.com/questions/4848964/postgresql-difference-between-text-and-varchar-character-varying

review: Needs Fixing

Unmerged revisions

8184. By Sanjay Gohel (Open ERP)

[IMP]increase message size as per coding convention

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'procurement/procurement.py'
2--- procurement/procurement.py 2012-11-02 17:34:07 +0000
3+++ procurement/procurement.py 2012-12-03 06:09:21 +0000
4@@ -103,7 +103,7 @@
5 readonly=True, required=True, help="If you encode manually a Procurement, you probably want to use" \
6 " a make to order method."),
7 'note': fields.text('Note'),
8- 'message': fields.char('Latest error', size=124, help="Exception occurred while computing procurement orders."),
9+ 'message': fields.char('Latest error', size=256, help="Exception occurred while computing procurement orders."),
10 'state': fields.selection([
11 ('draft','Draft'),
12 ('cancel','Cancelled'),

Subscribers

People subscribed via source and target branches

to all changes: