diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2018-11-27 13:54:21 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2018-11-27 14:41:27 +0000 |
| commit | a1ba5ba4b30d0e19516e8f929e76cecc98e30d98 (patch) | |
| tree | 6ba43b5defc7a7b851bf475718c823a166d6b6d7 /addons/web/static/src/js/views/basic | |
| parent | b1828c01d8f6cfa8ec430ef79f4778ddd0a80ac5 (diff) | |
[FIX] account: view for invoice lines that doesn't rely on 'parent'
This commit tackles the issue of having the pseudo-object 'parent' in the
invoice lines views
In the regular o2m, parent refers to the current invoice
From commit eca030cc3896835804cded22e62f44b879d8011a
we learn that parent.get() is not a valid field according to python
From OPW 1912243, we learn that:
- when the invoice line form view is standalone (not popped from the o2m)
'parent' is not what we expect (in this case it will refer to the record list of all invoice lines, NOT the invoice)
- parent.type in that case is undefined and makes the JS crash
So, to make sure we retrieve the right field and value, we retrieve them through
related fields pointing to the invoice
closes odoo/odoo#29074
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
