mrp.production.tree mrp.production
Split list,form code action = records.action_split() Merge list code action = records.action_merge() Mark as Done list code if records: res = records.filtered(lambda mo: mo.state in {'confirmed', 'to_close', 'progress'}).button_mark_done() if res is not True: action = res mrp.production.form mrp.production