Přejít na obsah
Menu
You need to be registered to interact with the community.
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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvn 24
1878
2
led 24
2180
1
úno 25
2105
1
pro 24
2491
2
dub 24
3917