Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
7 ตอบกลับ
5181 มุมมอง

While I'm updating Qty on Hand in products, it returns me this error:-

The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set

[object with reference: location_id - location.id]

I don't know what happened? Please help me solve this issue!

อวตาร
ละทิ้ง

Please check warehouse is created or not

and check under warehouse any location with type ='Internal'

ผู้เขียน

@Niyas Raphy

Thank you for this video Sir! In this video, there is one mandatory field which is empty while creating an appointment but In my case that field is not mandatory.

ผู้เขียน

@subbarao

Warehouse is already created and under that warehouse multiple locations are also present ie. internal location, customer location, vendor location

ผู้เขียน คำตอบที่ดีที่สุด

I resolved my issue by re-install inventory app.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

From what the log tells me that you're trying to make changes (in your case updating Qty on Hand) to a record and one or more record is still depending on the soon-to-be updated value. Can you perhaps provide the models' code for related field?

The log says "mandatory field is not correctly set" so perhaps you missed something in your code (My first thought is that you missed out the ondelete attribute on fields.Many2one method.)

อวตาร
ละทิ้ง
ผู้เขียน

Few days back, I removed all the data related to warehouse from DB. After removing I create new warehouse and new locations for the same. But when I'm trying to update qty on hand of particular product it return that error. There is one field of Production location in Product but when I create that location and used in Qty on Hand then its not returning any error but also not update the quantity

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 24
12072
1
เม.ย. 23
1909
2
ต.ค. 22
2229
1
เม.ย. 16
6108
1
มี.ค. 15
6214