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

Hi,

I'd like to know how i can automatically add a VAT exemption note, depending on the customer's fiscal position.

I've tried using the comment field and fill it in the product_id_change method (as my prices depends also of the fiscal position) but the value i put in the res dictionary is lost when leaving the event.

Is there any other way to achieve this ?

Thank you for your help.


Mikael

อวตาร
ละทิ้ง

Model fiscal position has field "note". Where problem?

ผู้เขียน

Hello. I'd like to have the note displayed on the invoice (that's why i try to use the note field in the invoice model). If i put something in the fiscal position's note will it be copied in the invoice ? Thanks

คำตอบที่ดีที่สุด

Try this in template report_invoice:

            <p t-if="o.fiscal_position.note">
<strong>Fiscal Position Remark:</strong>
<span t-field="o.fiscal_position.note"/>
</p>

PS. In default report template the 'Fiscal Position Remark:' is defined.

อวตาร
ละทิ้ง
ผู้เขียน

Thanks! That did the trick.

คำตอบที่ดีที่สุด

This is now standard in newer versions. However the legal notes field where to set such text is not easy to spot in the form of fiscal positions. It is just under the mapping table.


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 22
3091
1
เม.ย. 19
4154
0
มี.ค. 15
4061
3
มี.ค. 22
3102
2
ม.ค. 17
8542