Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

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'

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 24
1931
2
thg 1 24
2267
1
thg 2 25
2239
1
thg 12 24
2641
Cost of goods sold Đã xử lý
2
thg 4 24
4022