콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
4156 화면

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
1435
3
1월 24
1676
0
12월 23
1587
1
7월 23
1923
0
7월 23
649