Ir al contenido
Menú
Se marcó esta pregunta

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
Publicaciones relacionadas Respuestas Vistas Actividad
0
jun 24
1865
2
ene 24
2147
1
feb 25
2037
1
dic 24
2454
2
abr 24
3843