diff options
| author | Jairo Llopis <Yajo@users.noreply.github.com> | 2016-10-11 15:14:05 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2016-10-11 15:14:05 +0200 |
| commit | dd312e0da204ef88134622f71cbe16ed1f22c95e (patch) | |
| tree | f104359e70fe6b722a9a55fd8b04f0a3e764bf38 /addons/barcodes/static/src/js/form_view_barcode_handler.js | |
| parent | 633780a00c33089a5bd6fbbd9388ed37d46d59b9 (diff) | |
[FIX] fields: make [(5,)] with computed domain work (#13480)
* Failing test for one2many [(5,)] action, when domain is callable.
The problem is that `self` inside a callable domain becomes the comodel when at [(5,)].
* [FIX][fields] Make [(5,)] with computed domain work.
To reproduce this failure, declare a field like:
```
child_ids = fields.One2many(
comodel_name="other.model",
domain=lambda self: [("id", "in", self._ids_to_find())],
)
```
Now set some value to it.
Now unset them. Impossible because ``self`` becomes ``other.model`` in domain evaluation.
Diffstat (limited to 'addons/barcodes/static/src/js/form_view_barcode_handler.js')
0 files changed, 0 insertions, 0 deletions
