Skip to Content
Menú
This question has been flagged

Hello guys , hope anyone can find a solution about this ive tried several ways in 17 but none of them is working.
I have this field 

taxes_totals = fields.Binary(
string="Invoice Totals",
compute='_compute_taxes_totals',
help='Edit Tax amounts if you encounter rounding issues.',
readonly=True,
)

Which is on account.move just on my model is called differently and changed the name of the compute to make it just for my field despire using the same widget.
After some lines the result comes here

tax_totals = self.env['account.tax']._prepare_tax_totals(
base_line_values_list,
company_currency,
tax_lines=tax_lines,
is_company_currency_requested=is_company_currency_requested,
)

And here on the console i got printed 0.0 $ ( company currency ) despite on UI is appeared 0.0 €
Anyone which has faced this maybe can give me some advice what should i change.
The result on debug:{'amount_untaxed': 0.0, 'amount_total': 0.0, 'formatted_amount_total': '0,00\xa0L', 'formatted_amount_untaxed': '0,00\xa0L'

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de juny 24
1825
2
de gen. 24
2116
1
de febr. 25
1996
1
de des. 24
2413
2
d’abr. 24
3792