تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
6790 أدوات العرض

i am using odoo EV15 

how POS order can be deleted or change its status to New or cancel?

Note: without using; Return product option



الصورة الرمزية
إهمال
أفضل إجابة

Hello Muhammad Usman Anwar

As per your screenshot order has been paid. so we have to delete payment first then change order state to 'draft' as it is only allowed to delete in draft state.
finally delete order using server action.

please have a look following server action and python code

1) create server action to remove order and payment and click on "Create Contextual Action" button to add action on record.

2)  go to pos order list or form view and click on action to apply server action


Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat

الصورة الرمزية
إهمال

hello, how about odoo v12 ? its can use this code?

Hello David Permadi,

You can try this solution for Odoo 12 and let us know if you will find any issue with this solutions.

أفضل إجابة

Thank you very much for the solution. I want to know if it is working on Odoo 16c ?

الصورة الرمزية
إهمال
أفضل إجابة

Hi, it's running well to delete the prder and payment but the sotck move for stockable product is always present. Is it possible to cancel also the stock move ?

Rgds 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 24
785
2
مارس 15
7905
CANCEL QUOTATIONS تم الحل
4
يوليو 24
1776
1
أكتوبر 24
2331
2
سبتمبر 23
5324