Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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'

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
cze 24
1890
2
sty 24
2207
1
lut 25
2175
1
gru 24
2567
2
kwi 24
3951