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

One of our requirements is to be able to trigger the Purchase Order "Send By Email" prompt/wizard automatically when clicking the "Confirm Order" button.


In other words the requirement is to combine the two functions.  Therefore each time a user Confirms the PO, the Send By Email prompt will also be triggered to ensure that the user remembers to send the email.


I am unable to find any apps or documentation that suggests this functionality is possible without customisation.  Obviously wanting to avoid customisation if can be helped.


Any help would be appreciated.


Thanks,
Damien

形象
丢弃
最佳答案

Hi,
How about showing the confirm button only in the RFQ sent state ? doing so, user has to send the email first to confirm the order.

* To do so, using the studio, just change the button visibility of Confirm to show only in RFQ sent state

Thanks

形象
丢弃
最佳答案

Hi,

To achieve this functionality you need to make customization in your code.

If you need to work the functionality of send by email button on clicking on confirm order, you need to inherit the module purchase.order and need to override the function "def button_confirm(self)",

You can super this function and include the functionalities of "action_rfq_snd" in it. Then you can call the function "action_send_mail" to send the mail


Hope it helps

形象
丢弃