Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5722 มุมมอง

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 ?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
importing Purchase Order shown as a RFQ แก้ไขแล้ว
2
พ.ค. 25
2227
3
ธ.ค. 24
6418
1
ก.ค. 24
3146
Purchase Product Description Incorrect แก้ไขแล้ว
1
มิ.ย. 24
2185
2
มิ.ย. 24
3056