Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2669 Vistas

        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)

Avatar
Descartar
Mejor respuesta

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


Avatar
Descartar
Mejor respuesta

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)

Avatar
Descartar

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.

Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 25
2501
0
may 23
2272
3
mar 25
23823
1
nov 22
2168
1
may 22
5688