Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4055 Zobrazení

Hello kind folks,

I am new to Odoo and trying to define a method for computing tax (GST) for my invoices.


I deal in refurbished gadgets and the tax computation is different from regular Indian GST system. In my business,

Tax (GST) = (Sale Price - Purchase Price) * Tax Rate

or Tax (GST) = Margin * Tax Rate


We only charge/pay GST on the gross margin.


I am trying to define this taxation system through the python code option available in the Invoicing app of Odoo. I tried with 

Python Code: result = (price_unit - cost_unit) * 0.09

Applicable Code: result = true


But it seems cost_unit is not recognized by the system. Is there a simple workaround for this? Perhaps by getting the correct reference term for purchase price of the unit?

Avatar
Zrušit
Nejlepší odpověď

Hi Nikunj Jajodia,

Yes you can use the python code like:

        Python Code: result = (price_unit - product.standard_price) * 0.09

Hope it will help you.

Avatar
Zrušit
Autor

Thank you Malay! You are a superstar. Worked perfectly and solved my purpose.

Autor Nejlepší odpověď

Thank you Malay! You are a superstar. Worked perfectly and solved my purpose.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 24
1370
3
led 24
1592
0
pro 23
1533
1
čvc 23
1793
0
čvc 23
649