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

Hello, after importing a list of quotations from an Excel sheet to assign the corresponding price list, I need to convert these bulk entries into sales orders or directly into invoices.

The problem is that it is not possible to convert quotations directly into sales orders. Is there any solution to this issue?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thank you 

Awatar
Odrzuć
Najlepsza odpowiedź

HI,
Either by studio or using server action, you can add the option to multi confirm from the list view to confirm all the quotation at once.

See:  https://www.youtube.com/watch?v=_E-lxkawlbs

Thanks

Awatar
Odrzuć
Najlepsza odpowiedź

Hello,


To update a quotation to a sale order, you need to execute the following SQL query:

UPDATE sale_order SET state = 'done' WHERE id IN (...);

To create an invoice, you should implement a function like this:

sale_orders = self.env['sale.order'].search([('invoice_status', '=', 'to_invoice')])  

for order in sale_orders:  

    order.action_post()  


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
gru 24
2063
2
mar 24
2405
2
mar 24
2917
0
wrz 23
1481
1
wrz 23
1512