Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
327 stars 374 forks source link

Issue with widget type 'SearchableMultipleLive' with OField #251

Open naitikvithlani opened 7 years ago

naitikvithlani commented 7 years ago

I make a multiple selection with search field for partners to select attendees for adding or update an event.

Following the code of xml

<odoo.controls.OField
                    android:id="@+id/ext_partner_ids"
                    android:layout_width="match_parent"
                    app:fieldName="ext_partner_ids"
                    app:widgetType="SearchableMultipleLive"
                    app:fieldType="ManyToMany"
                    app:iconResource="@drawable/ic_action_user"
                    app:fieldTextSize="@dimen/text_size_xmedium"
                    android:layout_height="wrap_content">
</odoo.controls.OField>

Issue is : When we search any attendees they allow us to choose multiple partners. But when we search by keyword the result appears but already checked partners shows stuck selection by position.

dpr-odoo commented 7 years ago

@naitikvithlani can you share screenshot with "already checked partners shows stuck selection by position."

naitikvithlani commented 7 years ago

@dpr-odoo Please find attached screenshots.

Image 1 : You can see the search result perfect.

1

Image 2 : You can see the search result updates when you update search keywords but the selection position stuck on the same position.

2

dpr-odoo commented 7 years ago

Okay, It's a bug in SearchableMultipleLive with selected record position.

naitikvithlani commented 7 years ago

I have customized the Calendar.Event Model of base Odoo.

When we add / update records by insert() / update() methods of Calendar.Event (Extends OModel) instance with OValue params.

It does not sync with base odoo in web when we add or update records from the android application.