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
Stel een vraag
Writer
Labels
Keep Informed
1 volger(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
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now