跳至內容
選單
此問題已被標幟
2 回覆
6713 瀏覽次數

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.


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
4月 22
3017
1
4月 19
4084
0
3月 15
4000
3
3月 22
3053
2
1月 17
8504