Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2710 มุมมอง

        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)

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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)

อวตาร
ละทิ้ง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 25
2549
0
พ.ค. 23
2311
3
มี.ค. 25
23973
I can't upload any file in Odoo 13 แก้ไขแล้ว
1
พ.ย. 22
2231
1
พ.ค. 22
5734