diff options
| author | Martin Trigaux <mat@odoo.com> | 2019-07-12 06:26:16 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-07-12 07:22:41 +0000 |
| commit | c962b2cd11c85816e798f4816e044fc273b98c9e (patch) | |
| tree | ca2b777ed94d425155deb6458a9887c25552dd5f /odoo/tests | |
| parent | cea3f51e2f5cfdf44c657237e664ef397a0aa35f (diff) | |
| parent | 01365a3f625c9e7a80d78cf9c29ffa3d90435cd1 (diff) | |
[MERGE] Forwardport of saas-12.2 to saas-12.3 up to 01365a3f625c9e7
closes odoo/odoo#34747
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 603e02ac75b..b05128c6bcd 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -1531,6 +1531,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(?) |
