We should remove ref fields instead of code. Here we can create new functions without ref field too. terp=# select * from res_partner_function; id | create_uid | create_date | write_date | write_uid | code | name | ref ----+------------+----------------------------+----------------------------+-----------+------+-------------------------+----- 1 | 1 | 2009-01-19 17:28:05.892674 | | | CEO | Director | 2 | 1 | 2009-01-19 17:28:05.892674 | | | CTO | Chief Technical Officer| 3 | 1 | 2009-01-19 17:28:05.892674 | | | | Salesman | 4 | 1 | 2009-01-19 17:29:52.981644 | | | | Private Address | 5 | 1 | 2009-02-02 17:10:14.544799 | | 1 | test | Test |
We should remove ref fields instead of code. function; ------- ---+--- ------- ------- ------- ----+-- ------- ------- ------- -----+- ------- ---+--- ---+--- ------- ------- ------- -+-----
Here we can create new functions without ref field too.
terp=# select * from res_partner_
id | create_uid | create_date | write_date | write_uid | code | name | ref
----+--
1 | 1 | 2009-01-19 17:28:05.892674 | | | CEO | Director |
2 | 1 | 2009-01-19 17:28:05.892674 | | | CTO | Chief Technical Officer|
3 | 1 | 2009-01-19 17:28:05.892674 | | | | Salesman |
4 | 1 | 2009-01-19 17:29:52.981644 | | | | Private Address |
5 | 1 | 2009-02-02 17:10:14.544799 | | 1 | test | Test |