'Start the process \'Merge Automatically\'. This will fill the wizard with the same mechanism as \'Merge
with Manual Check\', but instead of refreshing wizard with the current line, it will automatically process
all lines by merging partner grouped according to the checked options.'

@api.multi
def action_start_automatic_process(self):

    self.ensure_one()
    self.action_start_manual_process()
    self.invalidate_cache()
    for line in self.line_ids:
        partner_ids = literal_eval(line.aggr_ids)
        self._merge(partner_ids)
        line.unlink()
        self._cr.commit()
    self.write({'state': 'finished'})
    return {'type': 'ir.actions.act_window', 'res_model': self._name, 'res_id': self.id, 'view_mode': 'form', 'target': 'new'}
