跳至內容
選單
此問題已被標幟
2 回覆
5683 瀏覽次數

Hello, 

I would like to find a solution (by coding or using an actual module) to automatically change the purchase order price if the customer is changed.

Ex : Product A available in 2 suppliers S1 and S2 .  Price for product A in S1=4€ and in S2=3.50€
My first request was with supplier S1, so I can see price 4€.

If I change the supplier to S2, actually, the price will not be changed automatically.

When You have a PO with 300 order.line, it is a problem....You have to modify 300 lines...


Any idea please ?


thanks for Your precious help :o)


頭像
捨棄

Hello, please I have the same issue, If you found a solution, please share it.

最佳答案

For current logs you can use the module to make a script that updates the records
\https://apps.odoo.com/apps/modules/12.0/smile_script/

For new updates use in res.partner model:

@api.constrains('changing_field')
def _constrains_changing_field(self):
    for rec in self:
      rec.custom_method();

頭像
捨棄
最佳答案

Any update for this question ?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
5月 25
2198
3
12月 24
6312
1
7月 24
3066
1
6月 24
2137
2
6月 24
3014