I would like to add a many2one field in a custom widget so I have to add it in the qweb template but I have no idea how to do this ?
Thanks a lot in advance!
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
I would like to add a many2one field in a custom widget so I have to add it in the qweb template but I have no idea how to do this ?
Thanks a lot in advance!
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|  | 0 févr. 21  | 3303 | ||
|  | 3 sept. 25  | 2125 | ||
|  | 1 juil. 25  | 2734 | ||
|  | 1 mai 25  | 3349 | ||
|  | 1 avr. 25  | 3074 | 
I can't help much as I'm currently discovering that code. But, have a look in
hr_timesheet_sheetmodule on the first tab of timesheet there is a widget showing a m2o onaccount.analytic.account.This is the module I used to inspirate myself. I finally found a way to do what I want by using javascript to create the many2one field. Anyway, thanks a lot for your message.
Hello Simon how you did it?