0

I have a model

I need to provide 4 select fields

The values choosen in the first select field will be used to calculate a subset of the model to show in the second select fiedl

the valued choosen in the second select field will be used to calculate a subset of the model to show in the third select field

and so on

I read returning domains from on_change methods is deprecated in odoo 14

I'm a bit confused

How am I supposed to do this ?

1 Answer 1

0

You can still use it this way, for example:

booking_date = fields.Date(string="Booking date")

@api.onchange('booking_date') 
    def onchange_booking_date(self):
        if self.booking_date:
             ...


Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.