Skip to content

Commit

Permalink
[IMP] currency conversion date when converting other currencies to co…
Browse files Browse the repository at this point in the history
…mpany currency
  • Loading branch information
cpintofonseca committed Dec 29, 2023
1 parent fae36d5 commit ebf4a37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions l10n_pt_account_invoicexpress/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def _get_invoicexpress_prefix(self, doctype):
}.get(doctype)

def _prepare_invoicexpress_lines(self):
date_today = fields.Date.today()
# FIXME: set user lang, based on country?
lines = self.invoice_line_ids.filtered(
lambda l: l.display_type not in ("line_section", "line_note")
Expand All @@ -129,7 +128,7 @@ def _prepare_invoicexpress_lines(self):
line.price_unit,
line.company_id.currency_id,
line.company_id,
date_today,
line.move_id.invoice_date or line.move_id.date or fields.Date.context_today(line),
)
items.append(
{
Expand Down

0 comments on commit ebf4a37

Please sign in to comment.