can delete but not save empty field

Bug #1202573 reported by Ferdinand
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Medium
OpenERP's Framework R&D

Bug Description

Hello!

Example - product categories

try to delete/clear income account and save

it must be possible to save previously filled o2m fields without content if the field is not mandatory !

same problem in 61 and 7
I put it as server bug, because the web client is rewritten or the bug is "copied" to the v7 webclient

Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Ferdinand (office-chricar) wrote :

had to delete some properties

probably a default was set prohibiting to save an empty field.

IMO default must not mean that the user is not allowed to save an empty field

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
martin (riess82) wrote :

The fields are not normal fields but property fields. the Default values are used an can be changed in Settings -> Technical -> Parameters -> configuration Parameters.

I agree with Ferdinand that the Default value should only be used when the object, in this case the product category, is created. After that, an empty field should be possible, as it is not mandatory.

That might be a fundamental Change, but one that fits reality better, I believe. This would mean three Options:
1) no Default value and not mandatory: empty field at object creation possible and later as well
2) Default value but not mandatory: value is set when object is created, can then be deleted and empty field saved
3) Default value and mandatory: every time the field is saved empty (also at creation) the Default value is inserted

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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