This commit is contained in:
2025-12-29 20:56:58 +01:00
parent 44a5cb9f64
commit 369805b7d0

View File

@@ -20674,7 +20674,7 @@ function eval_pyson(value){
window.addEventListener("message", function (event) { window.addEventListener("message", function (event) {
if (event.data?.type === "open_tab") { if (event.data?.type === "open_tab") {
const { model, res_id, view_mode, domain } = event.data.payload || {}; const { model, res_id, view_mode, domain, context } = event.data.payload || {};
Sao.Tab.create({ Sao.Tab.create({
model: model, model: model,
@@ -20685,24 +20685,14 @@ function eval_pyson(value){
}); });
} }
if (event.data?.type === "exec_window"){ if (event.data?.type === "exec_window"){
const { model, res_id, view_mode, domain } = event.data.payload || {}; const { model, res_id, view_mode, domain, context } = event.data.payload || {};
var action = { var action = {
// id: 'act_allocation_matched_form',
type: 'ir.action.act_window', type: 'ir.action.act_window',
// name: 'Lots matched', res_model: model,
res_model: 'lot.report',
pyson_domain: '[["r_lot_matched", ">", 0]]', pyson_domain: domain,
pyson_context: JSON.stringify({ pyson_context: JSON.stringify(context),
purchase: null,
sale: null,
shipment: null,
type: 'matched',
state: 'all',
wh: 'all',
group: 'by_physic'
}),
pyson_order: 'null', pyson_order: 'null',
pyson_search_value: '[]', pyson_search_value: '[]',