diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-04-26 15:51:00 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-04-26 15:57:27 +0200 |
| commit | 4606250d914bb18517d6f5713fcd33348553dadc (patch) | |
| tree | 8d9aef8c8df72b9e4d54cea8ad759708b5ae66b4 /addons/web/static/src/js/framework/session_instance.js | |
| parent | 7f9a973f513ef1b1e89a888fb16e72494ce55417 (diff) | |
[FIX] account: amount currency in journal items list view
In 8.0, the amount currency field was displayed
in the journal items list view
when choosing, thanks to the `quick add` widget,
a journal with a currency set.
Otherwise, if the journal had no currency set,
the column was not displayed.
It was done thanks to the key
"currency" passed in the context.
From 9.0, the `quick add` is no longer used,
and, due to that, the amount currency field
was no longer displayed in the journal items
list view at all, despite if the journal
had a currency set or not.
In technical words, `currency` was
no longer passed in the context,
making the invisibility property
set with
`invisible="not context.get('currency',False)"`
useless.
As this widget is no longer used, there
is no other choice than either
always display the column, either never.
We choose to display it only if you have
the multi-currency group (as this is the case
in the journal item form view)
We also take the opportunity to move the column
next to the debit & credit column, this is more
meaningful.
opw-676059
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions
