From dc921e686b1840bf89b1f42e3a790487cccfe291 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Wed, 12 Jul 2017 12:18:11 +0200 Subject: [PATCH] [FIX] API confusion on override monkeypatched method --- pos_pricelist/models/pos_order_patch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pos_pricelist/models/pos_order_patch.py b/pos_pricelist/models/pos_order_patch.py index 5d1278bd..9fc5c262 100644 --- a/pos_pricelist/models/pos_order_patch.py +++ b/pos_pricelist/models/pos_order_patch.py @@ -4,8 +4,10 @@ # flake8: noqa # pylint: skip-file from openerp.tools.translate import _ +from openerp import api +@api.cr_uid_ids_context def _create_account_move_line(self, cr, uid, ids, session=None, move_id=None, context=None): """ Monkeypatch for this method's version on pos.order in the point_of_sale module. Only change is to refer to the line's taxes instead of the