odoo/upgrade-util#313

Created by Upgrade, Agustín Castro Bugallo (agcb)
Merged at 46cac4aa145e7e93d832325062797983cf81e04a

Statuses:

label
odoo-dev:master-fields-allownocompanyfieldincompanydependent-agcb
head
8372b21793a1303d60439c13033b95da1560d217
merged
4 days ago by Upgrade, Christophe Simonis (chs)
odoo/upgrade-util
master #313

[IMP] util/fields: Convert to company dependent without company field

The current implementation of the function _convert_field_to_company_dependent requires a field that stores the company value, but this field is not always available.

This change aims to allow that case by passing a falsy value as company_field, then it creates a json with the current value for all companies as the new value in the column