Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2700 Lượt xem

        res_taxes = iline.invoice_line_tax_ids.compute_all(

            price, quantity=iline.quantity, product=iline.product_id,

            partner=self.partner_id)




        self._ubl_add_invoice_line_tax_total(
            iline, line_root, ns, version=version)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi, crocodile


In Odoo12 "invoice_line_tax_ids" field has been removed. So you can use below line for Odoo 13.0

res_taxes = iline.tax_ids._origin.compute_all(
            price, quantity=iline.quantity, product=iline.product_id,
            partner=self.partner_id)

Feel free to ask in case you have any query related to the above code.


Thanks,

Ashish Singh (Team Lead)

Webkul Software Private  Limited


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Odoo Lovers

Please Improve code like this

res_taxes = iline.tax_ids._origin.compute_all(

            price, quantity=iline.quantity, product=iline.product_id,

            partner=self.partner_id)

Ảnh đại diện
Huỷ bỏ

not understand why you add this answer when there is same answers already from Mr. Ashish

Mr.Niyas I Post answer First, But I don't why i am second.

I think here we sent post answer on same time or my page are not reloaded.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
2532
0
thg 5 23
2305
3
thg 3 25
23916
1
thg 11 22
2215
1
thg 5 22
5718