Message field(char) too short to allow long messages
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP R&D Addons Team 2 | |||
OpenERP Community Backports (Addons) | Status tracked in 7.0 | |||||
7.0 |
Fix Released
|
Undecided
|
Lionel Sausin - Initiatives/Numérigraphe |
Bug Description
On trunk build 14921
Following error occur when trying to convert from Quotation --> Sales Order
(to confirm order, given my product has a very long name)
<pre>
File "/opt/openerp7/
return eval(test_
File "", line 1, in <module>
File "/opt/openerp7/
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/opt/openerp7/
ok = ok and self._check_
File "/opt/openerp7/
cr.
File "/opt/openerp7/
return f(self, *args, **kwargs)
File "/opt/openerp7/
res = self._obj.
DataError: value too long for type character varying(124)
</pre>
Steps:
=====
1. New Quotation
2. Add product with very long name
3. Confirm order
Problem:
========
In procurement.py --> object = procurement.order, field "message" has length only 124, which I guess not enough when the message is logged.
Solution:
========
I try changing length to 1024 and repeat the process. It works now.
Related branches
- Guewen Baconnier @ Camptocamp (community): Needs Fixing
- Lionel Sausin - Initiatives/Numérigraphe (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedprocurement/procurement.py (+1/-1)
- Leonardo Pistone: Approve
- Holger Brunn (Therp): Approve (code review)
- Lionel Sausin - Initiatives/Numérigraphe (community): Approve (no truncation problem after all)
- Yannick Vaucher @ Camptocamp: Approve
- Guewen Baconnier @ Camptocamp: Approve
- Stefan Rijnhart (Opener): Approve
- Alexandre Fayolle - camptocamp: Pending (code review, no test) requested
- Pedro Manuel Baeza: Pending (code review) requested
- Raphaël Valyi - http://www.akretion.com: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedprocurement/procurement.py (+1/-1)
summary: |
- Error: Product - not enough stock - when convert from Quotation to Sales - Order + Message field(char) not proper on procurement as per the coding + convention. |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in ocb-addons: | |
assignee: | nobody → Lionel Sausin - Numérigraphe (lionel-sausin) |
status: | New → In Progress |
Changed in ocb-addons: | |
status: | In Progress → Fix Committed |
summary: |
- Message field(char) not proper on procurement as per the coding - convention. + Message field(char) too short to allow long messages |
Hello Kitti,
On trunk build (Build 25070)
server (4563)
addons (8061)
web (3441)
I have tested your issue at my end with latest trunk. but I didn't face any problem. So,Would you please provide proper steps to reproduce this ? and notify us If you face any problem.
Thanks you.!!