Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Click on line in tree view that's embedded in form to change context value for another field on the form

by
ClosingAp Open Source Integrators Europe, LDA, Daniel Reis
- 12/11/2024 16:36:20
Maybe have a button on the Event lines.
When clicked it runs a method returning a Window Action opening the same record on the same form, but with a specific context set.

A bit convoluted but it might work.

/Daniel


On 11/11/2024 17:07, Radovan Skolnik wrote:

Hello,


I am trying to solve something like this: ona form I ahve 2 fields displayed:

1) tree view of one2many field, where each record has a field of type Datetime - let's call these events

2) tree view of another one2many field that is computed and depending on the datetime in context - let's call these values


What I would like to try to achieve is that when I click on one of the events, the date from it is applied to context of values and that is recomputed/refreshed. I can achieve something similar with buttons with actions on events but that reloads the screen. Any idea?


Thank you very much. Best regards


    Radovan Skolnik

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


--
DANIEL REIS
MANAGING PARTNER

>> Schedule time on my calendar.
M: +351 919 991 307
E: dreis@OpenSourceIntegrators.com
A: Avenida da República 3000, Estoril Office Center, 2649-517 Cascais

[Logo OpenSourceIntegrators.com]