Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
5 Odpowiedzi
2413 Widoki

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

Awatar
Odrzuć

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.

Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Regards,
Michael

Awatar
Odrzuć