how i can get all fields of mrp.workorder models ? when i run this code i receive this error:ValueError: Expected singleton: mrp.workcenter(1, 2, 4, 3) code:
async getWorkOrderFromOdoo(req, res) {
getConnectionOdoo(function (err) {
odoo.execute_kw(
'mrp.workorder',
'search_read',
[
[
[
]
],
{
fields: [],
limit: 5
}
],
function (err, value) {
if (err) {
return console.log(err);
}
value.forEach((element) => console.log(element));
console.log('workorder Result: ', value);
}
);
});
}