Q:

How to create custom object in ODOO?

Are there any way to create some new model after onchange triggered?
For example, I want to create my custom report object after the state of quotation is changed to sale order.

A:

I solved that by trying to override action_confirm method of sale.order and it's worked!
class sale_order(models.Model) :
     _inherit = 'sale.order'
     job_container = fields.One2many('job.container','order')

     @api.multi
     def action_confirm(self):
            super(sale_order, self).action_confirm()
            self.env['job.container'].create({
                'order': self.id
            })

