Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
How to unlink inherited model data
I use this;
class A (models.Model)
_name = 'A'
.....
class B (models.Model)
_name = 'B'
_inherits = { 'A':'a_id'}
a_id = fields.Many2one('a',required=True,ondelete='cascade')
......
@api.multi
def unlink(self):
self.a_id.unlink()
return super(B,self).unlink()
but get this Error "Record does not exist or has been deleted."
How to delete A data from B tables
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 9/7/16, 4:12 AM |
Seen: 552 times |
Last updated: 9/7/16, 4:35 AM |