Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2456 Ansichten

Hello Guys ! please i need help ! how can i pass the search Panel in this action js . In XML we can do it with search_view_id params in action but with js how can i do it  ?? Thanks 


/** @odoo-module */
import { ListController } from "@web/views/list/list_controller";
import { registry } from '@web/core/registry';
import { listView } from '@web/views/list/list_view';



export class ProductListController extends ListController {
setup() {
super.setup();
}

redirect_to_product_pack() {
this.actionService.doAction({
type: 'ir.actions.act_window',
name: 'Forfaits',
res_model: 'product.template',
views: [[false, 'tree'], [false, 'form']],
domain: [['pack_ok', '=', true]],
target: 'current',
context: {
default_pack_ok: true,
default_pack_type: 'detailed',
default_pack_component_price: 'detailed',
default_pack_modifiable: false,
},
});
}

}

registry.category("views").add("button_in_tree1", {
...listView,
Controller: ProductListController,
buttonTemplate: "idpa_pack.ListButtons",
});

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Apr. 25
1387
Odoo App Gelöst
1
Nov. 23
1958
0
Mai 24
1687
0
Sept. 23
2643
0
Sept. 23
2256