Merge lp:~numerigraphe-team/ocb-addons/7.0-bug-1079548-sgo into lp:ocb-addons
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Holger Brunn (Therp) | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 10085 | ||||
Proposed branch: | lp:~numerigraphe-team/ocb-addons/7.0-bug-1079548-sgo | ||||
Merge into: | lp:ocb-addons | ||||
Diff against target: |
12 lines (+1/-1) 1 file modified
procurement/procurement.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~numerigraphe-team/ocb-addons/7.0-bug-1079548-sgo | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leonardo Pistone | Approve | ||
Holger Brunn (Therp) | code review | Approve | |
Lionel Sausin - Initiatives/Numérigraphe (community) | no truncation problem after all | Approve | |
Yannick Vaucher @ Camptocamp | Approve | ||
Guewen Baconnier @ Camptocamp | Approve | ||
Stefan Rijnhart (Opener) | Approve | ||
Alexandre Fayolle - camptocamp | code review, no test | Pending | |
Pedro Manuel Baeza | code review | Pending | |
Raphaël Valyi - http://www.akretion.com | Pending | ||
Review via email: mp+211488@code.launchpad.net |
This proposal supersedes a proposal from 2014-03-07.
Description of the change
This fixes a bug where the MRP scheduler fails when messages are too long to be stored in the database (particularly if the locale strings are verbose).
The length constraint is removed altogether as proposed by Guewen Baconnier.
This was approved already but I'm resubmitting because the migration team confirms they WILL truncate the data if we allow larger texts than trunk[1].
So it's trivial only because it's a message log.
I'll leave it up to you to decide among consenting adults as humorously suggested by Raphael.
[1] Complete reply from the migration team:
"""
If you have used 'custom' text fields, then migration process will not check the size of the data.
But if you have increased the size of OpenERP 'standard' fields by patching in the source version code, then migration process will truncate the data to the original shorter size (according to standard code of target version).
However, if your patch can be bundled as a separate custom module, you have the option to send the module to OpenERP so that your changes are considered. In that case, data will not be truncated. However this is a separate service; you may discuss this with your OpenERP account manager or the sales team for more info.
"""
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]).
For the record, here is the MP on the OpenERP's branch: /code.launchpad .net/~openerp- dev/openobject- addons/ trunk-bug- 1079548- sgo/+merge/ 137482
https:/
Thanks
[0] http:// stackoverflow. com/questions/ 4848964/ postgresql- difference- between- text-and- varchar- character- varying