You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When converting fields types we need to continue to inherits. Before we
avoided that because the column may be missing but it leads to situations
where custom manual fields are not updated properly.
For example if we add a custom manual field in `product.packaging.x_pdesc`
related to `product_id.description`. Without this patch the upgrade
`x_pdesc` is still of `ttype=text`. With this patch:
```
test_14_15=> select id,model,name,state,related,related_field_id,ttype from ir_model_fields where name like 'x\_%' or (model like 'product.%' and name='description')
+------+-------------------+-------------+--------+-----------------------------+------------------+-------+
| id | model | name | state | related | related_field_id | ttype |
|------+-------------------+-------------+--------+-----------------------------+------------------+-------|
| 3068 | product.packaging | x_pdesc | manual | product_id.description | 2635 | html |
| 2516 | product.template | description | base | <null> | <null> | html |
| 2635 | product.product | description | base | product_tmpl_id.description | <null> | html |
+------+-------------------+-------------+--------+-----------------------------+------------------+-------+
```
There are many specific fixes to update manual related fields to
`product.product.description`.
Also fix missing function parameter. `convert_field_to_html` expects a
cursor as first parameter.
closes#34
Signed-off-by: Christophe Simonis (chs) <[email protected]>
Co-authored-by: "Christophe Simonis" <[email protected]>
0 commit comments