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

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?

形象
丢弃
编写者 最佳答案

Thank you 

形象
丢弃
最佳答案

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

形象
丢弃
最佳答案

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()  


形象
丢弃
相关帖文 回复 查看 活动
1
12月 24
2082
2
3月 24
2423
2
3月 24
2948
0
9月 23
1508
1
9月 23
1538