Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
1460 Visualizações

I have a self - hosted Odoo community. I need to reduce the stock before a second user can "Go to payment", so my stock became negative at the end. 

The stock only reduces when I confirm Unpaid Orders, so my Payment order confirmation is manual through a bak transfer and I can have two available products in stock and several Unpaid Orders. 

Greetings!

Avatar
Cancelar
Melhor resposta

Yes, the reservation happens only on order confirmation, unpaid order state is Quotation sent.

If you always confirm unpaid orders, then you could possibly do it through automated action

Avatar
Cancelar

Jaideep, I enabled the developer mode in my community deployment, also activated the Automated Actions Rules Modules. Later going to Settings/ Technical / Automated Actions. But can't figure how to do that process: Validate Unpaid Orders.

Try this. This would set the order in confirmed state, but I haven't tested if the delivery orders are generated.  If this doesn't work, then you would need Action to be execute python code.

Sales team is the team that is set for website orders.





Melhor resposta

I came across a similar question earlier today and your response provided me with the necessary search terms to find the information I needed. Thank you for your help Jaideep >

https://www.odoo.com/es_ES/forum/ayuda-1/for-ecommerce-orders-not-paid-can-i-still-have-them-auto-confirmed-even-though-i-will-collect-payment-later-171258

Avatar
Cancelar

Yes, its the same concept. You could directly execute python code from automated action
for record in records:
record.action_confirm()