summaryrefslogtreecommitdiff
path: root/doc/reference/workflow/join.dot
diff options
context:
space:
mode:
authorManuel Vázquez Acosta <manuel@merchise.org>2019-05-03 15:30:13 +0000
committerNicolas Lempereur <nle@odoo.com>2019-05-06 11:45:49 +0000
commit08425316d311d4569d5d5634248fc1fd18d6a7f5 (patch)
treeeee47e3f1d3503670cf1a5e502d3ee0762321013 /doc/reference/workflow/join.dot
parent8b7658489259fac1ffcd6f0b3d83390ef7e5700b (diff)
[FIX] stock: rewrite search override style for RPC
Putting *args and **kwargs confuses the function `odoo.api.split_context`. This causes that a call to `search` via XMLRPC gets the wrong argument: takes the first argument of ``args`` as the context. Example which ignores the `count=True`:: ``` api.call_kw(self.env['product.product'], 'search', ( [], False, False, None, True, {'lang': 'en_US'} ), {}) ``` would ignore the `count=True` and use the wrong argument for context. Issue introduced in commit 15ea753a. Since: `def search(self, model=None, *args, **kwargs)` is equivalent to: `def search(self, args, offset=0, limit=None, order=None, count=False):` because the call to the super will anyway call the parent method, we can change the method arguments. note: this is only for [10.0,saas-14] where 15ea753a is. closes #33147 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Co-authored-by: Nicolas Lempereur <nle-odoo@users.noreply.github.com>
Diffstat (limited to 'doc/reference/workflow/join.dot')
0 files changed, 0 insertions, 0 deletions