[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#68911

X-original-commit: 62bad5e50aa1fe579ecc07242a22ec6ab6031e71
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Signed-off-by: Nicolas Viseur <vin-odoo@users.noreply.github.com>
This commit is contained in:
Nicolas (vin)
2021-04-07 15:44:23 +00:00
parent 3e3dce0eb8
commit 648117bb93
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -8244,6 +8244,12 @@ msgstr ""
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"
+2 -2
View File
@@ -167,12 +167,12 @@
<field name="debit" sum="Total Debit"/>
<field name="credit" sum="Total Credit"/>
<field name="amount_currency" groups="base.group_multi_currency" optional="hide"/>
<field name="currency_id" readonly="1" groups="base.group_multi_currency" optional="hide" string="Original Currency"/>
<field name="tax_tag_ids" widget="many2many_tags" width="0.5" optional="hide"/>
<field name="matching_number" optional="show"/>
<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>
@@ -202,11 +202,11 @@
<field name="analytic_account_id" optional="hide" groups="analytic.group_analytic_accounting" attrs="{'readonly':[('parent_state','=','posted')]}"/>
<field name="analytic_tag_ids" optional="hide" readonly="1" groups="analytic.group_analytic_tags"/>
<field name="amount_currency" readonly="1" groups="base.group_multi_currency"/>
<field name="currency_id" readonly="1" groups="base.group_multi_currency" optional="hide" string="Original Currency"/>
<field name="debit" sum="Total Debit" readonly="1"/>
<field name="credit" sum="Total Credit" readonly="1"/>
<field name="balance" sum="Total Balance" readonly="1" optional="hide"/>
<field name="matching_number" string="Matching" optional="show"/>
<field name="currency_id" readonly="1" invisible="1" />
<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"/>