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

From the CRM, how can I create an automation so that when I send a quotation, the lead/opportunity automatically updates and moves to the Proposal stage?


Version 18.0+e

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hii,

please try this 

Activate Developer Mode

create  Automated Actions.

Click “Create” and fill in the following:

  • Name: Move to Proposal on Quotation Sent
  • Model: Sale Order
  • Trigger: On Update
  • Apply On: Add a domain to filter only sent quotations:

[('state','=','sent')]


Add Python Code in the Action (Server Action)

Paste this in the Python Code section:

if record.opportunity_id:

    proposal_stage = env['crm.stage'].search([('name', '=', 'Proposal')], limit=1)

    if proposal_stage:

        record.opportunity_id.stage_id = proposal_stage.id


i hope it is use full

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Please refer to the following links:

1. https://www.youtube.com/watch?v=BBFSTxG9WKI


Hope it helps.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 24
2379
1
พ.ย. 23
3939
0
พ.ค. 20
3366
1
ก.ย. 25
467
2
ธ.ค. 24
1818