We add a index on the workcenter_id and workorder_id, both have a One2many related to (`time_ids` of workcenter and workorder) and both is in the some search domain in python (also in search view). (Also change the `readonly='True'` into correct form `readonly=True` of `production_id`, and remove duplicate fields `workcenter_id` in view) task-2389380 closes odoo/odoo#63500 Related: odoo/upgrade#2042 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>