Skip to content
Snippets Groups Projects
Commit aa0db63e authored by Nshimiyimana Séna's avatar Nshimiyimana Séna
Browse files

[FIX] account: remove references to `session.company_currency_id`

Currently, there are a few references to a variable called
`session.company_currency_id`. This variable used to be defined in the
`web_dashboard`, a module that no longer exists.

https://github.com/odoo/enterprise/blob/3d351aa3f8e4943df81bc09640ae16380e9a89f7/web_dashboard/models/ir_http.py#L14

 (v15.3)

This commit removes all references to `session.company_currency_id` in
the `account` module.

opw-3033656

closes odoo/odoo#108412

Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
parent b6605207
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ import { formatFloat, formatMonetary } from "@web/views/fields/formatters";
import { parseFloat } from "@web/views/fields/parsers";
import { standardFieldProps } from "@web/views/fields/standard_field_props";
import { registry } from "@web/core/registry";
import { session } from "@web/session";
const { Component, onPatched, onWillUpdateProps, useRef, useState } = owl;
......@@ -118,12 +117,7 @@ export class TaxTotalsComponent extends Component {
}
get currencyId() {
const recordCurrency = this.props.record.data.currency_id;
return recordCurrency ? recordCurrency[0] : session.company_currency_id;
}
get currency() {
return session.currencies[this.currencyId];
return this.props.record.data.currency_id;
}
invalidate() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment