Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1909 Näkymät

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
kesäk. 25
724
2
huhtik. 25
1156
0
tammik. 25
1122
1
heinäk. 24
1982
1
jouluk. 24
2559