Hello guys, I created a Many2many field in Odoo and I would like add a filter in my search view filtering by one of the fields of that Many2many field, is that possible? Thanks!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
Hello Jorge,
Many2many field is not directly being used in search view. However one other option is available, You should follow that alternate way :-
For example :-
1) If sale order having invoice_ids many2many field.
2) First make one invoice_number field in sale order.
3) In sale order field invoice_ids objects is account.invoice
So call account.invoice create method, you can get Source Document (origin) = SO reference number
4) Base on origin you can search sale order id and write that invoice number in sale order's field "invoice_number"
5) Then "invoice_number" is use in search view.
Hope this will help you!
Thanks.
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
2
lug 19
|
11350 | ||
|
1
giu 19
|
7134 | ||
|
3
apr 17
|
3054 | ||
odoo9 yesterday filter
Risolto
|
|
1
feb 23
|
6120 | |
|
1
ott 22
|
4310 |