Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Sequence (Auto Increment No.)

Odebírat

Get notified when there's activity on this post

This question has been flagged
sequencesequencenumberincrementapplicants
1 Odpovědět
14655 Zobrazení
Avatar
Ken Kasai

I created a sequence in Settings > Sequences and Identifiers > Sequences also in Sequence Codes. And I want to link the sequence to my custom field (x_applicant_num) in HR Applicant so that I could have an auto increment field for each applicant. anyone can help? thanks

 

Sequence Codes:

name: Applicantion No.

code: applicant_no

Sequences:

name: applicant_num

sequence type: Applicant No.

number padding:5

next number: 1

auto increment: 1

 

 

 

 

 

0
Avatar
Zrušit
OdooBot
thank you for the answer. However, Im a little confuse. Do I need to create a field or an object in Settings > Database Structure > Models / Fields for the Auto Increment Field?

On Mon, Feb 2, 2015 at 7:30 PM, Ankit Gandhi <er.ankitgandhi2013@gmail.com> wrote:

A new answer for Sequence (Auto Increment No.) has been posted. Click here to access the post.

--
Ankit Gandhi
Sent by Odoo S.A. using Odoo about Forum Post Sequence (Auto Increment No.)



--
Regards,

Ken Kasai, Software Engineer
NABI Computer Systems
Tel     : 632-985-6755
Fax    : 632-854-2643
www.nabisystems.net
skype/ym id: kenkasai222
Avatar
Ankit H Gandhi(AHG)
Nejlepší odpověď

Hello Ken Kasai,

This below code may be very helpfull.

create new .xml file

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">
        <record id="test_base_sequence_type" model="ir.sequence.type">
            <field name="name">Test Base Sequence</field>
            <field name="code">test.base.code</field>
        </record>

        <record id="test_base_sequence" model="ir.sequence">
            <field name="name">Test Base Sequence</field>
            <field name="padding">5</field>
            <field name="prefix">TB/%(year)s/</field>
            <field name="suffix">/Ankit</field>
            <field name="code">test.base.code</field>
            <field name="implementation">no_gap</field>
        </record>

    </data>
</openerp>

and create new .py file

class test_base(osv.Model):

      _name = 'test.base'

     _columns = {

           'code' : fields.char("Code", size=25, readonly=True)

     }

    def create(self, cr, uid, vals, context=None):
        sequence = self.pool.get('ir.sequence').get(cr, uid, 'test.base.code')
        vals['code'] = sequence
        res = super(test_base, self).create(cr, uid, vals, context=context)
        return res

if you find this answer helpful, please give me a thumbs up vote    

Regards,

Ankit H Gandhi

2
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
How to change the Quotation, Order, Invoice sequence numbers ? Vyřešeno
sequence sequencenumber
Avatar
Avatar
Avatar
2
pro 23
29909
Production Sequence error
manufacturing sequence sequencenumber
Avatar
Avatar
Avatar
2
říj 25
458
Odoo Sequence Issue Across Multiple Companies
sequence sequencenumber sequences
Avatar
0
led 25
2025
How to correct wrong invoice sequence?
invoice sequence sequencenumber
Avatar
Avatar
3
čvc 23
6015
How to include Date in the journal sequence
sequence journals sequencenumber
Avatar
Avatar
1
říj 22
3954
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now