Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1150 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Please refer to the following links:

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


Hope it helps.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 24
2051
1
thg 11 23
3315
0
thg 5 20
3020
2
thg 12 24
1452
1
thg 9 24
1642