Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1894 Visualizzazioni

Hi, everyone

I would like to automatically apply a Pricelist assigned to a web user when they log in
Therefore I've created a custom field in contacts that could select one of the pricelists


- Model: pricelist = fields.Many2one('product.pricelist', string='Pricelist')

- XML:  field name="pricelist" string="Pricelist"


I've made it this far, but I don't know what to do next
I think I need to control it with JavaScript, but I have no idea how to approach it


Can anyone give me some tips on how to find the web template id and how to code the javascript?


Many thanks


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 25
695
2
apr 25
1117
0
gen 25
1084
1
lug 24
1910
1
dic 24
2522