Odoo Help


how can i add serial number to invoice reports(invoice print outs)

Toni Novak
on 3/23/15, 4:11 PM 1,940 views

i am trying to add serial numbers to the invoice report. once i have set the serial number on the delivery order i want the same serial number to be printed in the invoice report. which i can then send it to my customers. 

openERP Version 8.saas~6

i do not host this myself, it is hosted by Odoo. 

On 4/1/15, 2:50 AM

Create a sequence (Your required Type) in xml

for example

<?xml version="1.0" encoding="utf-8"?>


<data noupdate="1">

<record id="seq_type_product_product" model="ir.sequence.type">

<field name="name">Product</field>

<field name="code">telephone</field>


<record id="seq_product_product" model="ir.sequence">

<field name="name">Product</field>

<field name="code">telephone</field>

<field name="prefix">NG</field>

<field name="padding">5</field>

<field name="company_id" eval="False"/>




after you write this code in corresponding python file.

_defaults = {'cust_id': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'telephone'), }


this sequence started with NG00001...

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/23/15, 4:11 PM
Seen: 1940 times
Last updated: 4/1/15, 2:50 AM