No way to add a *new* record from a many2many widget if there is one (and just one) record

Bug #496638 reported by Borja López Soilán (NeoPolus)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE OpenObject Client
Fix Released
Undecided
Unassigned

Bug Description

On GTK and Web clients, you can create new records from many2many widgets (the user clicks the "Add" button of the m2m field, and then he can click "New" on the pop-up window to create new records).

On Koo, if there are no records for the many2many, or there are more than 1, the pop-up window will appear, and the user will be able to use the "New" button to create new records that can be selected on the m2m.
But if there is one record (and just one), clicking the m2m "Add" button will auto-select that one record, not showing the pop-up window, so the user can not create new items.

You can reproduce it using the partner categories: if there are no categories or more than 1, the pop-up window will appear, if there is 1 category then there is no pop-up so you can create a new category from this view.

It should be some way to make the pop-up search window to appear: maybe the widget could auto-select the item only when the widget is empty, and show the search window otherwise => if the m2m widget has items already and the user clicks the "add" button again, then show the search window always.

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :
Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

Fixed in r1208 but with another patch. Thanks for reporting!

Changed in openobject-client-kde:
status: New → 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.