Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
5337 Weergaven

I am using Odoo Community, v14 and have made a custom module. 

I have a form view, with child records displayed at the bottom of the form (One2many relationship between parent and child records).  This is similar to an order header with order lines, where the child records are displayed as lines on the main form.

When I click on the child record, a form displays that record.  That form has a button to record start of an action, and 2 fields (a date field and a status field) are updated on the child record. The display of the child record shows the fields updated.

When that form is closed and I return to the parent record, the display of the child records on that form is not updated unless I refresh the page.

I would like to be able to trigger an update of the page or a re-display of the child fields on that main form, so that the update which was just done is immediately visible without a manual refresh.

Any advice on how to accomplish this?

Avatar
Annuleer
Beste antwoord

Hi,

Does reloading the screen from code will help you ? https://www.youtube.com/watch?v=ASQ1tonrjNg&t=88s


return {
'type': 'ir.actions.client',
'tag': 'reload',
}

Avatar
Annuleer

unfortunately, this doesn't work in form view

Beste antwoord

i cant an updated answer for odoo 17 please, 

i have a one2many list in my form , when i modify an element field from the one2many and close the form

the parent form does not refresh. 

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
feb. 22
2225
1
nov. 23
4052
0
jul. 22
1333
0
mei 22
1690
1
mei 24
2361