Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: How to create an auto increment ID Number field in HR Employee?

by
Dave Ellison
- 01/28/2015 04:00:52
Hi,

Looking at the hr_employee table, there is an id field already there. Is
is a sequence, so just auto increments. What you need to do is to show
that ID in your view?

Also, you may want to change the next value on the sequence if you say
for example want to start at 1000.

Thanks

On Wed, 2015-01-28 at 06:43 +0000, Franz Bautista wrote:
> 
> How to create an auto increment ID Number field in HR Employee? So
> that everytime I create an employee, the id number of an employee will
> automatically increment + 1 in a custom field (readonly). anyone can
> help? thank you in advance.
> 
> Regards,
> 
> 
> Franz Bautista, CEH
> NABI Computer Systems
> Tel     : 632-985-6755
> Fax    : 632-854-2643
> www.nabisystems.net
> skype/ym id: nabicom
> 
> 
> 
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-framework-62
> Post to: mailto:expert-framework@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
> 
> 
>