Inherit purchase order and create new object

189 views Asked by At

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.

1

There are 1 answers

0
DexJ On BEST ANSWER

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