Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

538
Views
How to make inheritance on Odoo 14 object

I'm trying to add inheritance on existing object in Odoo, which is "portal.mixin" into "repair.order" object.

I tried with this code:

class RepairOrder(models.Model):
    _name = 'repair.order'
    _inherit = ['portal.mixin']

but I got this error :

File "/usr/lib/python3/dist-packages/odoo/fields.py", line 3114, in _setup_regular_full
    invf = comodel._fields[self.inverse_name]
    KeyError: 'invoice_id' - - -

Any help please ?

Thanks.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

If repair.order is an existing model - not a new one - add it to the _inherit like ['repair.order', 'portal.mixin'] or you will lose all fields of the original model.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!