fields.reference required

Bug #604604 reported by Frédéric (Ferme du Sart)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Low
OpenERP sa GTK client R&D
Odoo Server (MOVED TO GITHUB)
Fix Released
Low
OpenERP's Framework R&D

Bug Description

1) fields.reference can execute write/create when the selector part is filled, but not the many2one part.
It creates/writes "model,0"
2) When fields.reference is required and bad written with "model,0", the menu doesn't shows form/tree to correct it, refusing NULL value for the reference! So we can just correct the problem in an SQL terminal.

Related branches

Changed in openobject-client:
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

assign right project

affects: openobject-client → openobject-server
Changed in openobject-server:
assignee: OpenERP sa GTK client R&D (openerp-dev-gtk) → OpenERP's Framework R&D (openerp-dev-framework)
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Naresh, this also appears to be a client-side issue, because the many2one widget should not allow submitting the form if the m2o part of the reference is not filled in. I'm changing the project so we fix it on both server and client sides.

Changed in openobject-client:
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
importance: Undecided → Low
milestone: none → 6.0-rc2
status: New → Confirmed
Changed in openobject-server:
importance: Medium → Low
milestone: none → 6.0-rc2
Changed in openobject-client:
status: Confirmed → In Progress
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

As of revision 3132 <email address hidden> the server will not accept ill-defined references anymore, and will not crash on previously saved ones (to be pushed online in a few minutes)

Changed in openobject-server:
status: Confirmed → Fix Released
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

field.reference when required and if the m2o part of the reference is not filled in. It color out the field as red as normally required fields do and will not allow to save the form now. It has been improved at lp:~openerp-dev/openobject-client/trunk-dev-client with revision-info as 1402 <email address hidden>

If its not required and the m2o part of the reference field is left blank the client will send the values to the server for the reference field as (ir.actions.act_window,0) .The server will send an "Invalid value for reference field "action" (last part must be a non-zero integer): "ir.actions.act_window,0" " and which ask user to enter a valid action ID.
This has been improved by odo in his commit 3132 at server.

Changed in openobject-client:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.