コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4079 ビュー

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?

アバター
破棄
最善の回答

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.

アバター
破棄
著作者

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

著作者 最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
3月 24
1385
3
1月 24
1607
0
12月 23
1538
1
7月 23
1801
0
7月 23
649