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
Data Dance s.r.o., Radovan Skolnik
- 12/11/2024 16:46:03

Hi Daniel,


that's actually almost the same way it is done now - button on the Event ;-) I'll have a look on how the bank reconcile widget is done in OCA as there is some similar magic going on...


Best regards


    Radovan


On utorok 12. novembra 2024 16:42:37 CET Daniel Reis wrote:

> 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 [1]

> Post to: mailto:contributors@odoo-community.org [2]

> Unsubscribe: https://odoo-community.org/groups?unsubscribe [3]

>

>

>

> --

> DANIEL

> REIS*

> MANAGING PARTNER

>

> >> Schedule time on my calendar [4] .

>

> M:*

> +351 919 991 307

> E:*

> dreis@OpenSourceIntegrators.com [5]

> A:*

> Avenida da República 3000, Estoril Office Center, 2649-517

> Cascais

> [6]

>

>

>

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15 [7]

> Post to: mailto:contributors@odoo-community.org

> Unsubscribe: https://odoo-community.org/groups?unsubscribe [8]

>

>

>

> [1] https://odoo-community.org/groups/contributors-15

> [2] mailto:contributors@odoo-community.org

> [3] https://odoo-community.org/groups?unsubscribe

> [4] https://meetings.hubspot.com/dreis1

> [5] mailto:dreis@OpenSourceIntegrators.com

> [6] https://www.opensourceintegrators.com/

> [7] https://odoo-community.org/groups/contributors-15

> [8] https://odoo-community.org/groups?unsubscribe