Odoo Help


This community 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.


How to create a incremental custom field , that increase its value for each product stockeable?

James Ford
on 2/23/16, 7:52 AM 295 views

Hi, I 'm trying to create a custom field incremental (sequence) that for each product type the incremental field stockable increase its number by one.

First , I created a custom field called ' x_niu ' (char ) which means " Unique identifier number " to be increased for each type " Stockable " product:

Image #1: http://es.tinypic.com/view.php?pic=6ed98i&s=9#.VsxSLj82xC0

Then I created a sequence for the ' x_niu ' field:

Image #2: http://es.tinypic.com/view.php?pic=2dsomc7&s=9#.VsxR0T82xC0

And I 've finally created a method to generate the sequence from the validation : the type of product must be stockable .

Image #3: http://es.tinypic.com/view.php?pic=1y02a1&s=9#.VsxSXT82xC0

In sale.order.form view , specifically the < notebook > sequence shown by all products not only stockables .In this form the only stockable product is "Acido Fosforico 32 K - SQMC"

Image #4: http://es.tinypic.com/view.php?pic=14dhphi&s=9#.VsxSiD82xC0

This is all. Maybe I've more than one error, but because I am new to Odoo .I'll be waiting ansiosament your advice and input. Thanks.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 2/23/16, 7:52 AM
Seen: 295 times
Last updated: 2/23/16, 8:04 AM