Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
5010 Lượt xem

i had set new product with Unique Serial Number (Tracking)

but if Invoice pdf the product not showing Serial Number (Key) 

How i can print the value in Invoice Pdf  odoo 11

Ảnh đại diện
Huỷ bỏ
Tác giả

Gokulakrishnan Murugesan

could plz mention where i can use code (xml page name)

Thank for your answer could you plz
tell me the path to put  the code

because I'm beginner to odoo

Thanks in advance




‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, August 27, 2019 4:05 PM, Gokulakrishnan Murugesan <gokulakannanaj@gmail.com> wrote:


A new answer on How to print Unique Serial Number of product in Invoice pdf in odoo 11 has been posted. Click here to access the post :

See post

Sent by Odoo S.A. using Odoo.


Câu trả lời hay nhất

In Invoice PDF it's not show serial number of product.  It will be used while processing delivery order. To show all serial numbers that is used in delivery order, you need to do customization in invoice report. You need to fetch those serial numebrs and show in invoice PDF report. 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Try Following Sample Code


<odoo>
<data>
<template id="report_quotation_inherit_demo" inherit_id="sale.report_saleorder_document">
<xpath expr="//table[@class='table o_main_table']//thead//tr/th[1]" position="after">
<th class="text-right">Seari Number</th>
</xpath>
<xpath expr="//tbody[@class='sale_tbody']//tr//td[2]" position="after">
<td><span t-field="line.your_field_name"/></td>
</xpath>
</template>
</data>
</odoo>

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You need to customize an existing invoice pdf report to add your custom field. This link will be helpful.

https://www.odoo.com/documentation/11.0/reference/reports.html

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 5 24
5049
0
thg 3 15
4400
0
thg 12 18
2325
0
thg 3 15
4353
1
thg 7 25
1256