Fix manually created partner or contracts without ref
CHANGELOG:
### Fixed
- [#429](https://gitlab.com/coopdevs/odoo-somconnexio/-/merge_requests/429) Fix "ref" and "code" assignation condition if coming empty with partner and contract models creation respectively.
Edited by Pelayo García