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

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!

形象
丢弃
最佳答案

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

形象
丢弃

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.





最佳答案

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

形象
丢弃

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