hi , here is my code but it doesn't work :
    
        
            
        
    
JS :
/** @odoo-module **/
import { ListController } from '@web/views/list/list_controller';
import { patch } from '@web/core/utils/patch';
import { useService } from '@web/core/utils/hooks';
patch(ListController.prototype, "bp_cdc"{
    setup() {
            this._super.apply();
        this._action = useService("action");
    },
    btn_function() {
         this._action.doAction({
             type: "ir.actions.act_window",
             name: "Cahiers des charges archivés",
             domain: [["jours_restants", "=", 0]],
             views: [[false, "list"], [false, "form"]],
             res_model: "bp.cdc",
             target: 'self',
             view_mode: "list,form"
         });
    }
});
