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

If I create MO then change the quantity (from the wizard update qty to produce) then cancel the MO it wouldn't let me delete it. The error shows: 

object with reference: Change Production Qty - change.production.qty

Even though I never produced any qty's, just saved it, updated and canceled.

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

Hello,

If you need to delete forcefully then First you need to delete record of model change.production.qty and then delete MO.


الصورة الرمزية
إهمال
الكاتب

this is what I ended up doing but I found this behavior strange

If need to solved permanent then inherit that wizard and overwrite moid fields with ondelete='cascade', so when delete mo then automatic delete that wizard record.

الكاتب

wonderful, would it be something to consider changing in the next update?

أفضل إجابة

There are dependencies to other tables. History log is created.  But cancelled is OK I think.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 24
15578
1
ديسمبر 15
8396
1
مارس 15
5267
1
مارس 15
9641
3
يناير 25
1658