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
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jul 23
|
1182 | ||
|
2
Jan 25
|
2289 | ||
|
1
Dec 24
|
6002 | ||
|
1
Nov 24
|
2424 | ||
|
1
Nov 24
|
1820 |