跳至内容
菜单
此问题已终结
2 回复
1171 查看

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.

形象
丢弃
相关帖文 回复 查看 活动
1
8月 24
2052
1
11月 23
3319
0
5月 20
3020
2
12月 24
1452
1
9月 24
1645