[ADD] URL shortener

TASK : https://www.odoo.com/web#id=8277&view_type=form&model=project.task&menu_id=3942&action=327
A guard would be simpler:
```python
if not code_rec:
    return None

# rest of code here
```