O2M: D&D should not call write if the model is not saved.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP sa GTK client R&D |
Bug Description
for example in the product supplier view.
I add a new line of supplier and when i try to reorder lines with drag and drop without saving the new lines, I obtain this message.
ERROR:db.cursor:bad query: insert into "product_
Traceback (most recent call last):
File "/media/
res = self._obj.
IntegrityError: ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « product_id »
This error is only in the GTK client.
I observe this bug on ubuntu 10.04 and on debian squeeze, in all V6.0 until this message.
Bruno Guibert
Héonium.
Related branches
- Naresh(OpenERP): Approve
-
Diff: 46 lines (+10/-7)1 file modifiedbin/widget/model/group.py (+10/-7)
- Naresh(OpenERP) (community): Approve
-
Diff: 46 lines (+10/-7)1 file modifiedbin/widget/model/group.py (+10/-7)
summary: |
- error in o2m fields when use dragndrop + O2M: D&D should not call write if the model is not saved. |
Changed in openobject-client: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP sa GTK client R&D (openerp-dev-gtk) |
status: | Confirmed → In Progress |
Changed in openobject-client: | |
status: | Fix Committed → Fix Released |
Hello Bruno Guibert,
Thanks for the report ! It has been improved @ lp:~openerp-dev/openobject-client/trunk-bug-756343-nch with revision-info as 1867 <email address hidden> and will be merged soon to the trunk client.
Thanks !