Hi, I am working on customizing the ListController in an Odoo module and have already applied a patch to the standard ListController.
However, I now need to further extend this customized controller in a new module. I am not entirely sure about the best practices for extending an already patched controller. Here's the current implementation where it is initially patched the ListController:
import { ListController } from "@web/views/list/list_controller"; patch(ListController.prototype, "XXXX_controller", { // Custom implementations });
Questions:
- What is the recommended approach to add additional functionality to this patched ListController?
- Should I create another patch, or is there a more efficient method to extend the existing patch?
- Are there any potential conflicts or best practices I should be aware of when patching an already extended controller in Odoo's JavaScript framework?
Any insights or examples would be greatly appreciated.