Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] web: make sidebar filter generic
Adding `res_model` and `res_fields` attributes on a field of a calendar view adds a filter in the sidebar. It saves the result as the defined model and should save it in the defined field. However `partner_id` has been hardcoded in the rpc call that creates the record. This breaks genericity, it cannot be used with another field than `partner_id`. This commit makes this generic by correctly setting the field name in the rpc call.
- Loading branch information