Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3634 Vistas

Hi everyone, 


I have a client who makes all products to order. Their products are large and complex and typically the BOM's contain thousands of parts; therefore, when an order is received from a customer, they do a lot of purchasing to procure the required parts.  There would typically be dozens of RFQ's to go out to various suppliers.  Instead of clicking into each RFQ and selecting "Send by Email," I would like to enable them to tick the desired RFQ's from the list view of all RFQ's and then bulk send them all to the default suppliers, perhaps via a "Send RFQ's" option in the Action menu.  I would appreciate your advice on how to achieve this.  Client is on Odoo cloud v14. Many thanks. 

Avatar
Descartar
Mejor respuesta

Create a Server Action like this:



Click CREATE CONTEXTUAL ACTION to have it show up in the Action Menu:


Avatar
Descartar
Autor

That works a treat Ray, thank you very much. Now I need to update the status of all the sent RFQ's because while they did send, the status still says, 'RFQ', not 'RFQ sent' as would be the case if I'd manually clicked into each one and clicked the 'Send by Email' button. I have searched the forum but I'm completely new to Odoo and haven't found an answer that I could follow. Any tips on this next part? Cheers

Try creating a second Server Action of type "Update the Record" that sets the Status field, then create a third of type "Execute Several Actions" that runs the first two. Click REMOVE CONTEXTUAL ACTION on the first and ADD CONTEXTUAL ACTION on the third so that the Server Action that does both steps is the one that shows up in the Action Menu.

Autor

Thanks a lot Ray. I've got this working perfectly with these three server actions. Really appreciate your help.

Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 17
2764
0
feb 25
909
3
jun 24
2631
3
may 24
4268
1
may 24
1498