Skip to Content
Menu
This question has been flagged
715 Views

Hello,

I try to do something but not possible for now!!

Here is an example of what i'm trying to do:

In a model "car", i added a one2many field, to have historical of the location with start date and end date.

In all those location, there is only one which is the current one (without end date or with an end date after today)

In the model car, i've got a field to know at any moment, which location is the current one.


Also i try how to fill this field, each time the user change location (add, delete, modify dates,...) and to fill in the data and in the view in order for the user to see that the current one has changed!

Any idea to do that?

I tried with method in the location model with api.onchange, with method compute on the car model, with api.depends, not possible, it doesn't works however i'm sure it is very simple to do that!!

Avatar
Discard