← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 715763] Re: [6.0] impossible to reset reference fields

 

First step is to fix framework to allow resetting reference values by writing False (bool, not str!) in the field.
We need to fix orm._check_selection_field_value() and probably use a _symbol_f = lambda x: x or None in fields.reference class.

Then we can change clients to write False when a reference fields is
emptied.

** Changed in: openobject-client
   Importance: Wishlist => Low

** Changed in: openobject-client
     Assignee: OpenERP sa GTK client R&D (openerp-dev-gtk) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/715763

Title:
  [6.0] impossible to reset reference fields

Status in OpenERP GTK Client:
  Confirmed

Bug description:
  Selection fields that are not mandatory can be empty. However, once you select an entry, you cannot reset value to unselected.
  There should be an empty line with no value like in the search view or like with the widget selection on a many2one.

  Another side effect is with reference fields that are composed of a
  selection field as first widget. When you select an object, you are
  forced to define the reference (even if optional) as you cannot
  unselect any object of the drop down in order to remove the value of
  the reference field.

  There must be a way to reset the value of a reference field that is
  not mandatory.



References