I am getting this following error
The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead.
Model: product.enquiry (product.enquiry), Constraint: product_enquiry_product_id_fkey
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
here is the example :
Not Related to This Question but l had same problem too
In my case it was caused by calling a Many2one field and passing a value id which is not available in the Many2one table on create function, ie
self.env['claims_payments.model'].create({
'product_id':6,
'claim_pay_qoute':repaires_qoutes,
})
Therefore look around if you not passing a value which is not in a database you are referring to.
Hi
Selva KD
,
Have you solved this issue?
The problem that I had was because I didn't update the module before using the fields.
Hi,
You are creating the model "product.offers" in your create function,
I hope the error is because , data for some mandatory field or fileds in model product.offers is not being passed in def create function
Check for the required=True fields in model product.offers and check whether you have passed the data in your create function.
Hope it helps
Thanks
The error already told the cause: There are some records which has fields linked to the record you are trying to delete. Just find them and unlink, or as Odoo suggest, you archive it instead of delete the record.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 7 23
|
1182 | ||
Odoo wrong company logo in email
Đã xử lý
|
|
2
thg 1 25
|
2290 | |
|
1
thg 12 24
|
6006 | ||
|
1
thg 11 24
|
2426 | ||
|
1
thg 11 24
|
1822 |