Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odpovědi
2407 Zobrazení

Hi, is it possible when we have several quotations to confirm them in one time instead of opening one by one to confirm them one by one

Thanks

Avatar
Zrušit

Hi Yenthe

thank you very much !

Regards

You're welcome, best of luck with Odoo!

Hi Yenthe

i have done this

and then i have an error when i try to confirm sale orders in bulk

I have done the other python code and have a similar error

 

regards

 

 

From: Yenthe Van Ginneken [mailto:yenthespam@gmail.com]
Sent: Thursday, March 21, 2019 3:47 PM
To: Jack Lee <jack.lee@jyf-international.com>
Subject: Re: Odoo 8 confirm several quotations

 

You're welcome, best of luck with Odoo!

 

Sent by Odoo S.A. using Odoo.

Nejlepší odpověď

Hi Jack,

You could easily do this by creating a server action in which you loop over the selected records. You can then trigger the function 'action_confirm' which confirms a quotation / sale order:


After you've created the server action you simply click on the button "Create contextual action" in the form. If you then go to the sale orders you'll see you can use the action:


Alternatively you can write a Python function that loops over the record and does the same:

for order in sale_orders:
order.action_confirm()

Regards,
Yenthe

Avatar
Zrušit
Nejlepší odpověď

Hi, just wanted to say thanks. Great solution - solved my problem... (did create a server action as well).

Regards,
Michael

Avatar
Zrušit