Merge lp:~openerp-dev/openobject-addons/6.1-opw-583542-ado into lp:openobject-addons/6.1
Proposed by
Amit Dodiya (OpenERP)
Status: | Rejected |
---|---|
Rejected by: | Naresh(OpenERP) |
Proposed branch: | lp:~openerp-dev/openobject-addons/6.1-opw-583542-ado |
Merge into: | lp:openobject-addons/6.1 |
Diff against target: |
14 lines (+2/-1) 1 file modified
procurement/procurement.py (+2/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-583542-ado |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Naresh(OpenERP) (community) | Disapprove | ||
Amit Dodiya (OpenERP) (community) | Needs Resubmitting | ||
Xavier ALT (community) | Needs Fixing | ||
Review via email: mp+141610@code.launchpad.net |
Description of the change
Hello,
"[BACKPORT] error while confirming sale order when we have message size more than field size of procurement"
Error while writing the message for "Latest Error" field of procurement in other language when we have the content size more than field size.
Code is back-ported from 7.0
Regards,
Amit
To post a comment you must log in.
Unmerged revisions
- 7121. By Amit Dodiya (OpenERP)
-
[FIX] error while confirming sale order when we have message size more than field size of procurement
Hello Amit,
I regret, but DB field size changed are not allowed for stable branch.
I would prefer you to strip the message according to the field size, to ensure it will fit into the DB. Something like:
procurement/ procurement. py:387 field_max_ sz = max(0, self.pool. get('procuremen t.order' )._all_ columns[ 'message' ].column. size) or None execute( 'update procurement_order set message=%s where id=%s', (message[ :message_ field_max_ sz], procurement.id))
message_
cr.
Regards,
Xavier