No way to add a *new* record from a many2many widget if there is one (and just one) record
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.
Fixed in r1208 but with another patch. Thanks for reporting!