summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNicolas (vin) <vin@odoo.com>2020-11-26 12:23:00 +0000
committerNicolas (vin) <vin@odoo.com>2021-02-02 09:41:28 +0000
commit4b0f86107e9ecaf734ebc95ccc0013cc25c65e64 (patch)
treec42ffb6d668c258518fdeb9c0ab795c7225a8438 /addons
parentc3c6ec69a0c50daf0b33df62144b6cd2f254a4f5 (diff)
[FIX] account: allow to display the line currency when exporting to xlsx
Currently, when exporting move lines via for example the partner ledger, we are not displaying the currency in any way in the xlsx. For some company, this can be limiting since they may want to do post-treatment inside the file after export, which can require such information. This change will add the 'always_set_currency_id' field as optional into the list view of the amls, allowing to keep the information about the currency when exporting if needed. task id #2381355 closes odoo/odoo#65350 X-original-commit: b314e6dc072fa7ea0ca326de2469e56e1baa2884 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com> Signed-off-by: William André (wan) <wan@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/i18n/account.pot6
-rw-r--r--addons/account/views/account_move_views.xml4
2 files changed, 8 insertions, 2 deletions
diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot
index c01eaeab42c..cea615b8b5a 100644
--- a/addons/account/i18n/account.pot
+++ b/addons/account/i18n/account.pot
@@ -8190,6 +8190,12 @@ msgid "Original Bills"
msgstr ""
#. module: account
+#: model_terms:ir.ui.view,arch_db:account.view_move_line_tree
+#: model_terms:ir.ui.view,arch_db:account.view_move_line_tree_grouped
+msgid "Original Currency"
+msgstr ""
+
+#. module: account
#: model:ir.model.fields,field_description:account.field_account_move_line__payment_id
msgid "Originator Payment"
msgstr ""
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml
index 32765726da6..1658fa80ab1 100644
--- a/addons/account/views/account_move_views.xml
+++ b/addons/account/views/account_move_views.xml
@@ -155,10 +155,10 @@
<field name="amount_currency" groups="base.group_multi_currency" optional="hide"/>
<field name="tax_tag_ids" widget="many2many_tags" width="0.5" optional="hide"/>
<field name="matching_number" optional="show"/>
+ <field name="currency_id" readonly="1" groups="base.group_multi_currency" optional="hide" string="Original Currency"/>
<field name="reconcile_model_id" invisible="1"/>
<field name="reconciled" invisible="1"/>
<field name="date_maturity" optional="hide"/>
- <field name="currency_id" readonly="1" invisible="1"/>
<field name="company_currency_id" invisible="1"/>
<field name="parent_state" invisible="1"/>
</tree>
@@ -191,7 +191,7 @@
<field name="credit" sum="Total Credit" readonly="1"/>
<field name="balance" sum="Total Balance" readonly="1" optional="hide"/>
<field name="amount_currency" readonly="1" groups="base.group_multi_currency"/>
- <field name="currency_id" readonly="1" invisible="1" />
+ <field name="currency_id" readonly="1" groups="base.group_multi_currency" optional="hide" string="Original Currency"/>
<field name="company_currency_id" invisible="1"/>
<field name="parent_state" invisible="1"/>
<field name="tax_ids" widget="many2many_tags" width="0.5" optional="hide" readonly="1"/>