From f8a474de8099a489529fd9b4fedeac07b4e7f9e2 Mon Sep 17 00:00:00 2001 From: yann Date: Tue, 28 Feb 2023 10:55:29 +0100 Subject: [PATCH] Pass context to get method otherwise things like language get ignored when using get. Pretty annoying --- lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.js b/lib/index.js index ec4a50a..e6b60e9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -121,6 +121,7 @@ Odoo.prototype.get = function (model, params, callback) { params.ids, ], kwargs: { + context: this.context, fields: params.fields, }, }, callback);