is it possible to call a function in a domain

Asked by mhass

Hello,

is it possilbe to call a function in a domain like this:
[('partner_id','in',get_all_partners(address_id))]

Best regards

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nicola Riolini - Micronaet (nicolariolini) said :
#1

I dont' think, if is you case, in a form oyu can use onchange event and dynamically return domain for the field in your form

Revision history for this message
Quentin THEURET @Amaris (qtheuret) said :
#2

I don't know, but the best way to know is to try it.

I know that is possible to give an expression in the right argument of a domain (It seems don't worked in attrs domains)

Revision history for this message
Francois Degrave (fde-be) said :
#3

Hi!

I think no. I'm pretty sure you have to define a functional field to achieve this.

Can you help with this problem?

Provide an answer of your own, or ask mhass for more information if necessary.

To post a message you must log in.