diff options
| author | MaxLarue <mla@odoo.com> | 2019-09-02 13:40:09 +0000 |
|---|---|---|
| committer | Geoffroy Larue <gla@odoo.com> | 2019-09-18 12:05:19 +0000 |
| commit | f5596bb8fe6998083194dd54027ae6adff802f14 (patch) | |
| tree | 48da392b3a56bfe24aca8773d7dc107cac78bd27 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 48f3bb8ee9603254c4e2df02f96313fe40125fa0 (diff) | |
[IMP] sale: fix action_view_invoice in batch
action_view_invoice is made to work on empty/single/multi records, but there are context keys used to provide defaults when creating invoices in the next view. However when those fields are different among the origin sale orders, we get an error, because the record set's values is accessed like in a single record.
In this record we add the default_* context keys only if the recordset is of length 1, so it keep working as before for single/no records. And it doesn't crash when coming from multiple sale orders with different fields.
related task 2047389
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
