Odoo Help

0

0
1 Answer
0
Hi,
You can convert method like this

@api.multi
def raw_confirm(self):
child_line = self.env['rutile.quality.line.item']
for id_val in ids:
search_val = self.env['rutile.quality.line.item'].search([('parent_id', '=', id_val)])
for line in self.env['rutile.quality.line.item'].browse(search_val.id):
            child_line_id = child_line.browse(line.id)
child_line_id.write({'state': 'waiting_approve'})
return self.write({'state': 'waiting_approve'})




Best of Luck
Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register