summaryrefslogtreecommitdiff
path: root/odoo/api.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2019-10-28 15:04:18 +0000
committerXavier Morel <xmo@odoo.com>2019-11-27 09:59:51 +0000
commit17ad6be46aaec5fc4ed03b4f0f0df1a6755ef1b3 (patch)
tree8ae04a100544470c247a7a015c0929ed5f8b3526 /odoo/api.py
parent5426960e547c44868277c9f79aabeea8c5a5ce41 (diff)
[FIX] base: returning a domain from an onchange
Turns out we've got an operator just for the pattern of "match value if there's one, otherwise match everything". Also remove an example of domain in onchange doc. closes odoo/odoo#40938 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'odoo/api.py')
-rw-r--r--odoo/api.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/odoo/api.py b/odoo/api.py
index ebda349fe61..68b92943640 100644
--- a/odoo/api.py
+++ b/odoo/api.py
@@ -148,7 +148,6 @@ def onchange(*args):
.. code-block:: python
return {
- 'domain': {'other_id': [('partner_id', '=', partner_id)]},
'warning': {'title': "Warning", 'message': "What is this?", 'type': 'notification'},
}