You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I click on a record, a new form opens but not the active record, only the form for creating a new one.
This happens when we are using this option on tree views. If we have a tree inside a form (purchase order lines inside purchase.order.form) everything is working properly.
in the file form.esm.js we have function async onMany2ManyBadgeClick(event, record)
I noticed that in this particular case 'record.data.id' is empty.
My workaround is adding this statement:
if (!id) {
id = record.resId;
}
after
var id = record.data.id;
In my opinion, maybe we should just pass to var id -> record.resId.
Unfortunately, I do not have enough time in the near future to test this well, this is why I am reporting this bug.
Kind regards,
The text was updated successfully, but these errors were encountered:
Hello,
I encountered that this option:
options="{'open':True}" is not working properly on the tree views.
Example
I have field:
<field optional="show" name="something_ids" widget="many2many_tags" options="{'open':True}"/>
When I click on a record, a new form opens but not the active record, only the form for creating a new one.
This happens when we are using this option on tree views. If we have a tree inside a form (purchase order lines inside purchase.order.form) everything is working properly.
in the file form.esm.js we have function async onMany2ManyBadgeClick(event, record)
I noticed that in this particular case 'record.data.id' is empty.
My workaround is adding this statement:
after
var id = record.data.id;
In my opinion, maybe we should just pass to var id -> record.resId.
Unfortunately, I do not have enough time in the near future to test this well, this is why I am reporting this bug.
Kind regards,
The text was updated successfully, but these errors were encountered: