Search code examples
odooodoo-9openerp-8odoo-10

Inherit purchase order and create new object


enter image description here

Blockquote

I inherit the _inherit='purchase.order, and create new object with name _name='job.order' and use its view but when i am going to save it showing error (odoo warning) in pic.


Solution

  • use _inherits instead of _inherit this way you will create new object with with all field of 'purchase.order plus new field you declare in your model that won't affect original model.

    for reference check res.user model in base module