I have a situation where I want to push(insert) my data to other model
Eg:
class sales_quotation(models.Model):
_name = 'tbl.sales.quotation'
batch_ids = fields.Many2many('batch.master',string= 'Batches')
product_id = fields.Many2one('product.product',string= 'Product')
@api.one
@api.multi
def send_to_order(self):
cr = self.env.cr
uid = self.env.uid
ids = self.ids
context = 'context'
for temp in self:
sales_order = self.pool.get('tbl.sales.order').create(cr,uid,{
'product_id':temp.product_id.id,
'batch_ids':--------------------------------?(What i have to write here i am totally confused i cant figure it out)
})