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

Hi


A user has created a new unit of measure category which is incorrect and now we can't delete it.  There is no archive option as well.

When I remove the UoM, the message shows as

"Invalid Operation"

UoM category XXX must have at least one reference unit of measure".


If I delete the Category, the following message appears

"Validation Error

The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead.

Model: Product Unit of Measure (uom.uom)

Constraint: uom_uom_category_id_fkey"


How do I delete this record that was imported incorrectly?


Thanks

อวตาร
ละทิ้ง

Hi,

I have the same question as this. Thank you.

uoms as well as its categories can be created too easily in Odoo leading to errors, maybe there needs to be a way to merge these

คำตอบที่ดีที่สุด

Hello i already fix for odoo here https://github.com/odoo/odoo/pull/184848 .

They will merge this soon

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

Hi,
Upon checking it seems an issue, trying the same am not able to delete the category as well as the uom in it. Hopefully a solution, will land for the same soon, and will keep posted here.

Thanks

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

clean name of the uom and click icon delete and save the category, after delete category record.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด
IF you really want to delete you can navigate to settings -> technical -> Model Constraints and search for uom_uom_category_id_fkey this and delete this and try to delete the uom

NOTE: First try in a test database. Maybe after deleting uom_uom_category_id_fkey all the category will be deleted or something happens so check it
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ต.ค. 24
1552
0
มิ.ย. 24
1327
1
พ.ค. 24
1473
0
ก.ค. 25
542
2
ก.ค. 25
35