How add filter from model into wizard?


(Carlos chicata) #1

hi community.
i need to build a wizard to generate a report but i need use the filter of models ( invoice ); do is it possible?; and if the answer is yes: how can i do it?


(Nicolas Évrard) #2

I don’t understand what you want to do.


(Carlos chicata) #3

i am sorry because i don’t explain it well.
i need a generate a report using data from invoice; and i need create a wizard to display a form with filter to generate a report. But i need to select several values (e.g. select several status from invoices: posted and paid) in a fields. how can i create a field with several selected value in wizard?


(mono) #4

http://docs.tryton.org/projects/server/en/latest/ref/models/fields.html#many2many

A Many2Many field can be used on a simple ModelView, like in a Wizard. For this, relation_name is set to the target model and origin and target are set to None.


(Carlos chicata) #5

thanks @mono, it help me so much