'Utility method used to add an "Open Company" button in partner views'

@api.multi
def open_commercial_entity(self):

    self.ensure_one()
    return {'type': 'ir.actions.act_window', 'res_model': 'res.partner', 'view_mode': 'form', 'res_id': self.commercial_partner_id.id, 'target': 'current', 'flags': {'form': {'action_buttons': True}}}
