跳至内容
菜单
此问题已终结

I am trying to modify the sales details pdf in point of sale version 12.
I have found the relevant file to change, however; I am having difficulty fetching the value I want to display.
I want to include the actual amount paid under payments in that I someone uses Euros (In the case of multi-currency) to pay for a product. The actual cash amount paid(tendered) is captured in the sales details ( before the currency is converted.)

Here is my xml;

<odoo> 

 <data>

 <template id="report_saledetail_ext" inherit_id="point_of_sale.report_saledetails"> 

 <xpath expr="//table[2]//thead//th[2]" position="after"> 

 <th>Actual Currency</th> 

 </xpath> <xpath expr="//table[2]//tbody//td[2]" position="after"> 

 <td><t t-esc="payment['tendered']" /></td> </xpath>
</template>

 </data>

</odoo>


形象
丢弃
相关帖文 回复 查看 活动
4
11月 19
4932
2
5月 25
8105
2
12月 19
5247
3
11月 19
10143
1
11月 19
3665