This commit is contained in:
2025-12-29 20:08:30 +01:00
parent 5d4fadcd35
commit c96c15ab59

View File

@@ -20692,8 +20692,8 @@ function eval_pyson(value){
name: 'Lots matched',
res_model: 'lot.report',
// PYSON sous forme de string
pyson_domain: "[('r_lot_matched', '>', 0)]",
// PYSON JSON-compatible
pyson_domain: '[["r_lot_matched", ">", 0]]',
pyson_context: JSON.stringify({
purchase: null,
@@ -20705,23 +20705,11 @@ function eval_pyson(value){
group: 'by_physic'
}),
views: [], // ou préciser des vues si besoin
domains: [] // onglets de domaine (optionnel)
views: [],
domains: []
};
// Données actives (souvent vides pour une action menu)
var data = {
model: null,
id: null,
ids: []
};
// Contexte supplémentaire (optionnel)
var context = {};
// Exécution
Sao.Action.exec_action(action, data, context);
Sao.Action.exec_action(action, {ids: []}, {});
}
});