跳至內容
選單
此問題已被標幟
1882 瀏覽次數

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


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 25
687
2
4月 25
1104
0
1月 25
1074
1
7月 24
1898
1
12月 24
2513