diff options
| author | Martin Trigaux <mat@odoo.com> | 2019-07-10 09:42:48 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-07-10 10:14:06 +0000 |
| commit | 00ef2653da41d7c7633d5fdf26bda11a4e8208ee (patch) | |
| tree | 874b4e9bff77330d645f073faf3c04daaccba44c /odoo/tests | |
| parent | f9ead39f5f8d0d2bdeeab5c10b12d26ae323b117 (diff) | |
| parent | 3b1d00acda935810826e476ad49a48bf5947c0ab (diff) | |
[MERGE] Forward port of 12.0 to saas-12.2 up to 3b1d00acda9358108
closes odoo/odoo#34732
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'odoo/tests')
| -rw-r--r-- | odoo/tests/common.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odoo/tests/common.py b/odoo/tests/common.py index e38c4475d86..a5b0c7571a2 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -1525,6 +1525,12 @@ class O2MForm(Form): else: self._values.update(proxy._records[index]) + def _get_modifier(self, field, modifier, default=False, modmap=None, vals=None): + if vals is None: + vals = {**self._values, '•parent•': self._proxy._parent._values} + + return super()._get_modifier(field, modifier, default=default, modmap=modmap, vals=vals) + def _onchange_values(self): values = super(O2MForm, self)._onchange_values() # computed o2m may not have a relation_field(?) |
