SlideShare a Scribd company logo

How to Make Sequence Number in Odoo 16

In Odoo 16, the sequence number is a field used to assign a unique, incremental number to records in a specific model. It helps in maintaining the order or sequence of records and can be useful in various scenarios.

1 of 10
Download to read offline
How to make Sequence
Number in Odoo 16
In Odoo 16, the sequence number is a field used to assign a
unique, incremental number to records in a specific model. It
helps in maintaining the order or sequence of records and can be
useful in various scenarios.
Here are some common use cases of sequence number:
• Order and Ranking: Sequence numbers can be used to establish a specific order or ranking for records within a model. For
example, in a list of tasks, the sequence number can determine the priority or order in which the tasks should be executed.
• Document Numbering: Sequence numbers are commonly used to generate unique document numbers, such as invoices,
purchase orders, sales orders, etc. Each time a new record is created, the sequence number field is automatically assigned a
new, sequential value.
• Sorting and Filtering: The sequence number field can be used for sorting and filtering records. By sorting records based on the
sequence number, you can view them in a specific order, such as ascending or descending.
• Workflow and Automation: Sequence numbers can be leveraged in workflow and automation rules. For example, you can
define specific actions or triggers based on the sequence number of a record, allowing you to automate certain processes or
notifications.
• Reference and Identification: Sequence numbers can serve as a reference or identification for records. They provide a unique
identifier that can be used to easily locate or reference specific records within a model.
Let's talk about how to create a sequence number in Odoo 16 using Python and XML.
• As seen in the image below, first we need to define a field for the sequence.
• Then we need to define a function for creating sequence in the particular model.
• And after that, make an XML file and create record for that.
Let’s discuss each item in the XML file.
• The ID is the ID of that record, it is unique for each record. And that record will be stored in the ir.sequence table.
• name - is the Name of the record that will be created on the specified model.
• Code - is the sequence code for the record.
• Prefix - is a character field that gives the prefix of the sequence for the record.
• Padding - is the size of the sequence. We can decide the size.
• Active- It determines whether the sequence is currently active or not.
• Number Next - The number_next field determines the value of the next sequence number to be generated.
• Number Increment - The number_increment field determines the amount by which the sequence number increases with each new
number generated.

Recommended

Actions and menus in odoo 16
Actions and menus in odoo 16Actions and menus in odoo 16
Actions and menus in odoo 16Celine George
 
How to Define Many2many Field in Odoo 15
How to Define Many2many Field in Odoo 15How to Define Many2many Field in Odoo 15
How to Define Many2many Field in Odoo 15Celine George
 
Defining Kanban View in Odoo15 | Advanced Views
Defining Kanban View in Odoo15 | Advanced ViewsDefining Kanban View in Odoo15 | Advanced Views
Defining Kanban View in Odoo15 | Advanced ViewsCeline George
 
Creating Menu and Actions in Odoo 15
Creating Menu and Actions in Odoo 15Creating Menu and Actions in Odoo 15
Creating Menu and Actions in Odoo 15Celine George
 
Oracle Purchasing ivas
Oracle Purchasing ivasOracle Purchasing ivas
Oracle Purchasing ivasAli Ibrahim
 
Understanding and using life event checklists in oracle hrms r12
Understanding and using life event checklists in oracle hrms r12Understanding and using life event checklists in oracle hrms r12
Understanding and using life event checklists in oracle hrms r12MuhammadAbubakar206124
 
Oracle HRMS Fast Formula
Oracle HRMS Fast FormulaOracle HRMS Fast Formula
Oracle HRMS Fast Formularunjithrocking
 
Validation type 'special' in value sets
Validation type 'special' in value setsValidation type 'special' in value sets
Validation type 'special' in value setsFeras Ahmad
 

More Related Content

What's hot

How to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF TemplateHow to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF TemplateFeras Ahmad
 
Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...Ahmed Elshayeb
 
Oracle Self Service HR Document
Oracle Self Service HR DocumentOracle Self Service HR Document
Oracle Self Service HR DocumentHussain Abbas
 
Oracle Form material
Oracle Form materialOracle Form material
Oracle Form materialRajesh Ch
 
Sap abap interview questions
Sap abap interview questionsSap abap interview questions
Sap abap interview questionskssr99
 
Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2Mina Lotfy
 
Personalization how to restrict transaction type list of values
Personalization how to restrict transaction type list of valuesPersonalization how to restrict transaction type list of values
Personalization how to restrict transaction type list of valuesAhmed Elshayeb
 
Oracle EBS R 12 Core hr user manual
Oracle EBS R 12 Core hr user manualOracle EBS R 12 Core hr user manual
Oracle EBS R 12 Core hr user manualFeras Ahmad
 
Oracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalizationOracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalizationAhmed Elshayeb
 
Odoo ORM Methods | Object Relational Mapping in Odoo15
Odoo ORM Methods | Object Relational Mapping in Odoo15 Odoo ORM Methods | Object Relational Mapping in Odoo15
Odoo ORM Methods | Object Relational Mapping in Odoo15 Celine George
 
Oracle EBS R12 Self service user manual
Oracle EBS R12 Self service user manualOracle EBS R12 Self service user manual
Oracle EBS R12 Self service user manualFeras Ahmad
 
0106 debugging
0106 debugging0106 debugging
0106 debuggingvkyecc1
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisherJAYAARC
 
Abap function module help
Abap function module helpAbap function module help
Abap function module helpKranthi Kumar
 
Oracle Payables R12 ivas
Oracle Payables R12 ivasOracle Payables R12 ivas
Oracle Payables R12 ivasAli Ibrahim
 
Basic Views in Odoo 16
Basic Views in Odoo 16Basic Views in Odoo 16
Basic Views in Odoo 16Celine George
 
Ame how to diagnose issues with the default approver list in purchasing when ...
Ame how to diagnose issues with the default approver list in purchasing when ...Ame how to diagnose issues with the default approver list in purchasing when ...
Ame how to diagnose issues with the default approver list in purchasing when ...Abdul Rahman Fouad Thabit
 
Functions oracle (pl/sql)
Functions oracle (pl/sql)Functions oracle (pl/sql)
Functions oracle (pl/sql)harman kaur
 

What's hot (20)

How to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF TemplateHow to Create Oracle Fusion BI Publisher Report Using RTF Template
How to Create Oracle Fusion BI Publisher Report Using RTF Template
 
Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...
 
Oracle Self Service HR Document
Oracle Self Service HR DocumentOracle Self Service HR Document
Oracle Self Service HR Document
 
Oracle Form material
Oracle Form materialOracle Form material
Oracle Form material
 
Sap abap interview questions
Sap abap interview questionsSap abap interview questions
Sap abap interview questions
 
Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2
 
Personalization how to restrict transaction type list of values
Personalization how to restrict transaction type list of valuesPersonalization how to restrict transaction type list of values
Personalization how to restrict transaction type list of values
 
Oracle EBS R 12 Core hr user manual
Oracle EBS R 12 Core hr user manualOracle EBS R 12 Core hr user manual
Oracle EBS R 12 Core hr user manual
 
Oaf personalization examples
Oaf personalization examplesOaf personalization examples
Oaf personalization examples
 
Oracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalizationOracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalization
 
Odoo ORM Methods | Object Relational Mapping in Odoo15
Odoo ORM Methods | Object Relational Mapping in Odoo15 Odoo ORM Methods | Object Relational Mapping in Odoo15
Odoo ORM Methods | Object Relational Mapping in Odoo15
 
Oracle EBS R12 Self service user manual
Oracle EBS R12 Self service user manualOracle EBS R12 Self service user manual
Oracle EBS R12 Self service user manual
 
0106 debugging
0106 debugging0106 debugging
0106 debugging
 
Understanding Physical Inventory
Understanding Physical InventoryUnderstanding Physical Inventory
Understanding Physical Inventory
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisher
 
Abap function module help
Abap function module helpAbap function module help
Abap function module help
 
Oracle Payables R12 ivas
Oracle Payables R12 ivasOracle Payables R12 ivas
Oracle Payables R12 ivas
 
Basic Views in Odoo 16
Basic Views in Odoo 16Basic Views in Odoo 16
Basic Views in Odoo 16
 
Ame how to diagnose issues with the default approver list in purchasing when ...
Ame how to diagnose issues with the default approver list in purchasing when ...Ame how to diagnose issues with the default approver list in purchasing when ...
Ame how to diagnose issues with the default approver list in purchasing when ...
 
Functions oracle (pl/sql)
Functions oracle (pl/sql)Functions oracle (pl/sql)
Functions oracle (pl/sql)
 

Similar to How to Make Sequence Number in Odoo 16

Fuel Good 2018: Jet Reports Pre-Conference Training
Fuel Good 2018: Jet Reports Pre-Conference TrainingFuel Good 2018: Jet Reports Pre-Conference Training
Fuel Good 2018: Jet Reports Pre-Conference TrainingSparkrock
 
SAP MM - Master Data.pptx
SAP MM - Master Data.pptxSAP MM - Master Data.pptx
SAP MM - Master Data.pptxsushilsaxena12
 
Ps training mannual ( configuration )
Ps training mannual ( configuration )Ps training mannual ( configuration )
Ps training mannual ( configuration )Soumya De
 
Lab 5 –MIPS Assembly languageProgramming with MARS IDEConsol.docx
Lab 5 –MIPS Assembly languageProgramming with MARS IDEConsol.docxLab 5 –MIPS Assembly languageProgramming with MARS IDEConsol.docx
Lab 5 –MIPS Assembly languageProgramming with MARS IDEConsol.docxDIPESH30
 
Python Fundamentals for the begginers in programming
Python Fundamentals for the begginers in programmingPython Fundamentals for the begginers in programming
Python Fundamentals for the begginers in programmingbsse20142018
 
web programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Malothweb programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh MalothBhavsingh Maloth
 
Model Fields in Odoo 15
 Model Fields in Odoo 15 Model Fields in Odoo 15
Model Fields in Odoo 15Celine George
 
Revision booklet 6957 2016
Revision booklet 6957 2016Revision booklet 6957 2016
Revision booklet 6957 2016jom1987
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENTLori Moore
 
Copying number ranges in SAP FICO ECC
Copying number ranges  in SAP FICO ECCCopying number ranges  in SAP FICO ECC
Copying number ranges in SAP FICO ECCSrinivas Rao
 
Review of Basic Data Analytic Methods using R.pptx
 Review of Basic Data Analytic Methods using R.pptx Review of Basic Data Analytic Methods using R.pptx
Review of Basic Data Analytic Methods using R.pptxSIVAPRIYAK6
 
Purchasing cycle exercise
Purchasing cycle exercisePurchasing cycle exercise
Purchasing cycle exerciseRicky
 
Group technology
Group technologyGroup technology
Group technologyjntuhcej
 
Model Attribute - _order
Model Attribute - _orderModel Attribute - _order
Model Attribute - _orderCeline George
 
1. The implementation of a shared memory can be done by three mai.docx
1.  The implementation of a shared memory can be done by three mai.docx1.  The implementation of a shared memory can be done by three mai.docx
1. The implementation of a shared memory can be done by three mai.docxdorishigh
 
SAP Serial number management
SAP Serial number managementSAP Serial number management
SAP Serial number managementKelvin Cheng
 

Similar to How to Make Sequence Number in Odoo 16 (20)

Fuel Good 2018: Jet Reports Pre-Conference Training
Fuel Good 2018: Jet Reports Pre-Conference TrainingFuel Good 2018: Jet Reports Pre-Conference Training
Fuel Good 2018: Jet Reports Pre-Conference Training
 
Bdc
BdcBdc
Bdc
 
SAP MM - Master Data.pptx
SAP MM - Master Data.pptxSAP MM - Master Data.pptx
SAP MM - Master Data.pptx
 
Ps training mannual ( configuration )
Ps training mannual ( configuration )Ps training mannual ( configuration )
Ps training mannual ( configuration )
 
Lab 5 –MIPS Assembly languageProgramming with MARS IDEConsol.docx
Lab 5 –MIPS Assembly languageProgramming with MARS IDEConsol.docxLab 5 –MIPS Assembly languageProgramming with MARS IDEConsol.docx
Lab 5 –MIPS Assembly languageProgramming with MARS IDEConsol.docx
 
Python Fundamentals for the begginers in programming
Python Fundamentals for the begginers in programmingPython Fundamentals for the begginers in programming
Python Fundamentals for the begginers in programming
 
web programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Malothweb programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Maloth
 
Model Fields in Odoo 15
 Model Fields in Odoo 15 Model Fields in Odoo 15
Model Fields in Odoo 15
 
Python PPT.pptx
Python PPT.pptxPython PPT.pptx
Python PPT.pptx
 
Revision booklet 6957 2016
Revision booklet 6957 2016Revision booklet 6957 2016
Revision booklet 6957 2016
 
C fundamentals
C fundamentalsC fundamentals
C fundamentals
 
Sql Basics And Advanced
Sql Basics And AdvancedSql Basics And Advanced
Sql Basics And Advanced
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENT
 
Copying number ranges in SAP FICO ECC
Copying number ranges  in SAP FICO ECCCopying number ranges  in SAP FICO ECC
Copying number ranges in SAP FICO ECC
 
Review of Basic Data Analytic Methods using R.pptx
 Review of Basic Data Analytic Methods using R.pptx Review of Basic Data Analytic Methods using R.pptx
Review of Basic Data Analytic Methods using R.pptx
 
Purchasing cycle exercise
Purchasing cycle exercisePurchasing cycle exercise
Purchasing cycle exercise
 
Group technology
Group technologyGroup technology
Group technology
 
Model Attribute - _order
Model Attribute - _orderModel Attribute - _order
Model Attribute - _order
 
1. The implementation of a shared memory can be done by three mai.docx
1.  The implementation of a shared memory can be done by three mai.docx1.  The implementation of a shared memory can be done by three mai.docx
1. The implementation of a shared memory can be done by three mai.docx
 
SAP Serial number management
SAP Serial number managementSAP Serial number management
SAP Serial number management
 

More from Celine George

Multi - checkbox Attribute in the Odoo 17
Multi - checkbox Attribute in the Odoo 17Multi - checkbox Attribute in the Odoo 17
Multi - checkbox Attribute in the Odoo 17Celine George
 
How To Create Record Rules in the Odoo 17
How To Create Record Rules in the Odoo 17How To Create Record Rules in the Odoo 17
How To Create Record Rules in the Odoo 17Celine George
 
Add Products From Catalog in Odoo 17 Sales
Add Products From Catalog in Odoo 17 SalesAdd Products From Catalog in Odoo 17 Sales
Add Products From Catalog in Odoo 17 SalesCeline George
 
New Features in the Odoo 17 Sales Module
New Features in  the Odoo 17 Sales ModuleNew Features in  the Odoo 17 Sales Module
New Features in the Odoo 17 Sales ModuleCeline George
 
Subscription Pause Cancel in Odoo 17
Subscription Pause Cancel in Odoo 17Subscription Pause Cancel in Odoo 17
Subscription Pause Cancel in Odoo 17Celine George
 
How To Create Calendar View In Odoo 16
How To Create Calendar View In Odoo 16How To Create Calendar View In Odoo 16
How To Create Calendar View In Odoo 16Celine George
 
Model Attribute - _description
Model Attribute - _descriptionModel Attribute - _description
Model Attribute - _descriptionCeline George
 
Model Attribute - _transient
Model Attribute - _transientModel Attribute - _transient
Model Attribute - _transientCeline George
 
Down Payments In Odoo 16 Sales
Down Payments In Odoo 16 SalesDown Payments In Odoo 16 Sales
Down Payments In Odoo 16 SalesCeline George
 
How to empty an One2many field in Odoo
How to empty an One2many field in OdooHow to empty an One2many field in Odoo
How to empty an One2many field in OdooCeline George
 
Configure Project in Odoo 16
Configure Project in Odoo 16Configure Project in Odoo 16
Configure Project in Odoo 16Celine George
 
Model Constraints In Odoo 16
Model Constraints In Odoo 16Model Constraints In Odoo 16
Model Constraints In Odoo 16Celine George
 
Quick Tips in Odoo 16
Quick Tips in Odoo 16Quick Tips in Odoo 16
Quick Tips in Odoo 16Celine George
 
Model Fields in Odoo 16
Model Fields in Odoo 16Model Fields in Odoo 16
Model Fields in Odoo 16Celine George
 
Building a Module in Odoo 16
Building a Module in Odoo 16Building a Module in Odoo 16
Building a Module in Odoo 16Celine George
 
Module Structure in Odoo 16
Module Structure in Odoo 16Module Structure in Odoo 16
Module Structure in Odoo 16Celine George
 
Composition of a Module in Odoo 16
Composition of a Module in Odoo 16Composition of a Module in Odoo 16
Composition of a Module in Odoo 16Celine George
 
How to Add a Store Attribute to a Field in Odoo 16
How to Add a Store Attribute to a Field in Odoo 16How to Add a Store Attribute to a Field in Odoo 16
How to Add a Store Attribute to a Field in Odoo 16Celine George
 
Odoo 16 Advanced Features
Odoo 16 Advanced FeaturesOdoo 16 Advanced Features
Odoo 16 Advanced FeaturesCeline George
 
Odoo 15 Payoll Webinar Slide
Odoo 15 Payoll Webinar SlideOdoo 15 Payoll Webinar Slide
Odoo 15 Payoll Webinar SlideCeline George
 

More from Celine George (20)

Multi - checkbox Attribute in the Odoo 17
Multi - checkbox Attribute in the Odoo 17Multi - checkbox Attribute in the Odoo 17
Multi - checkbox Attribute in the Odoo 17
 
How To Create Record Rules in the Odoo 17
How To Create Record Rules in the Odoo 17How To Create Record Rules in the Odoo 17
How To Create Record Rules in the Odoo 17
 
Add Products From Catalog in Odoo 17 Sales
Add Products From Catalog in Odoo 17 SalesAdd Products From Catalog in Odoo 17 Sales
Add Products From Catalog in Odoo 17 Sales
 
New Features in the Odoo 17 Sales Module
New Features in  the Odoo 17 Sales ModuleNew Features in  the Odoo 17 Sales Module
New Features in the Odoo 17 Sales Module
 
Subscription Pause Cancel in Odoo 17
Subscription Pause Cancel in Odoo 17Subscription Pause Cancel in Odoo 17
Subscription Pause Cancel in Odoo 17
 
How To Create Calendar View In Odoo 16
How To Create Calendar View In Odoo 16How To Create Calendar View In Odoo 16
How To Create Calendar View In Odoo 16
 
Model Attribute - _description
Model Attribute - _descriptionModel Attribute - _description
Model Attribute - _description
 
Model Attribute - _transient
Model Attribute - _transientModel Attribute - _transient
Model Attribute - _transient
 
Down Payments In Odoo 16 Sales
Down Payments In Odoo 16 SalesDown Payments In Odoo 16 Sales
Down Payments In Odoo 16 Sales
 
How to empty an One2many field in Odoo
How to empty an One2many field in OdooHow to empty an One2many field in Odoo
How to empty an One2many field in Odoo
 
Configure Project in Odoo 16
Configure Project in Odoo 16Configure Project in Odoo 16
Configure Project in Odoo 16
 
Model Constraints In Odoo 16
Model Constraints In Odoo 16Model Constraints In Odoo 16
Model Constraints In Odoo 16
 
Quick Tips in Odoo 16
Quick Tips in Odoo 16Quick Tips in Odoo 16
Quick Tips in Odoo 16
 
Model Fields in Odoo 16
Model Fields in Odoo 16Model Fields in Odoo 16
Model Fields in Odoo 16
 
Building a Module in Odoo 16
Building a Module in Odoo 16Building a Module in Odoo 16
Building a Module in Odoo 16
 
Module Structure in Odoo 16
Module Structure in Odoo 16Module Structure in Odoo 16
Module Structure in Odoo 16
 
Composition of a Module in Odoo 16
Composition of a Module in Odoo 16Composition of a Module in Odoo 16
Composition of a Module in Odoo 16
 
How to Add a Store Attribute to a Field in Odoo 16
How to Add a Store Attribute to a Field in Odoo 16How to Add a Store Attribute to a Field in Odoo 16
How to Add a Store Attribute to a Field in Odoo 16
 
Odoo 16 Advanced Features
Odoo 16 Advanced FeaturesOdoo 16 Advanced Features
Odoo 16 Advanced Features
 
Odoo 15 Payoll Webinar Slide
Odoo 15 Payoll Webinar SlideOdoo 15 Payoll Webinar Slide
Odoo 15 Payoll Webinar Slide
 

Recently uploaded

Successful projects and failed programmes – the cost of not designing the who...
Successful projects and failed programmes – the cost of not designing the who...Successful projects and failed programmes – the cost of not designing the who...
Successful projects and failed programmes – the cost of not designing the who...Association for Project Management
 
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdfDr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdfDr.Florence Dayana
 
SSC Hindu Religion and Moral Education MCQ Solutions 2024.pdf
SSC Hindu Religion and Moral Education MCQ Solutions 2024.pdfSSC Hindu Religion and Moral Education MCQ Solutions 2024.pdf
SSC Hindu Religion and Moral Education MCQ Solutions 2024.pdfMohonDas
 
Decision on Curriculum Change Path: Towards Standards-Based Curriculum in Ghana
Decision on Curriculum Change Path: Towards Standards-Based Curriculum in GhanaDecision on Curriculum Change Path: Towards Standards-Based Curriculum in Ghana
Decision on Curriculum Change Path: Towards Standards-Based Curriculum in GhanaPrince Armah, PhD
 
BBA 603 FUNDAMENTAL OF E- COMMERCE UNIT 1.pptx
BBA 603 FUNDAMENTAL OF E- COMMERCE UNIT 1.pptxBBA 603 FUNDAMENTAL OF E- COMMERCE UNIT 1.pptx
BBA 603 FUNDAMENTAL OF E- COMMERCE UNIT 1.pptxProf. Kanchan Kumari
 
Permeation enhancer of Transdermal drug delivery system
Permeation enhancer of Transdermal drug delivery systemPermeation enhancer of Transdermal drug delivery system
Permeation enhancer of Transdermal drug delivery systemchetanpatil2572000
 
Google Ad Grants Services at TechSoup.pdf
Google Ad Grants Services at TechSoup.pdfGoogle Ad Grants Services at TechSoup.pdf
Google Ad Grants Services at TechSoup.pdfTechSoup
 
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...i3 Health
 
Kartik Nair In Media Res Media Component
Kartik Nair In Media Res Media ComponentKartik Nair In Media Res Media Component
Kartik Nair In Media Res Media ComponentInMediaRes1
 
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...AKSHAYMAGAR17
 
2.22.24 Black Nationalism and the Nation of Islam.pptx
2.22.24 Black Nationalism and the Nation of Islam.pptx2.22.24 Black Nationalism and the Nation of Islam.pptx
2.22.24 Black Nationalism and the Nation of Islam.pptxMaryPotorti1
 
Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdf
Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdfDiploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdf
Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdfSUMIT TIWARI
 
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdfA LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdfDr.M.Geethavani
 
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdf
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdfA Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdf
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdfOH TEIK BIN
 
EDL 290F Week 2 - Good Company (2024).pdf
EDL 290F Week 2  - Good Company (2024).pdfEDL 290F Week 2  - Good Company (2024).pdf
EDL 290F Week 2 - Good Company (2024).pdfElizabeth Walsh
 
MEC MAJUBA SADDENED BY THE PASSING AWAY OF THREE TEACHERS FOLLOWING A CAR ACC...
MEC MAJUBA SADDENED BY THE PASSING AWAY OF THREE TEACHERS FOLLOWING A CAR ACC...MEC MAJUBA SADDENED BY THE PASSING AWAY OF THREE TEACHERS FOLLOWING A CAR ACC...
MEC MAJUBA SADDENED BY THE PASSING AWAY OF THREE TEACHERS FOLLOWING A CAR ACC...SABC News
 
Nzinga Kika - The story of the queen
Nzinga Kika    -  The story of the queenNzinga Kika    -  The story of the queen
Nzinga Kika - The story of the queenDeanAmory1
 
Persuasive Speaking and Organizational Patterns
Persuasive Speaking and Organizational PatternsPersuasive Speaking and Organizational Patterns
Persuasive Speaking and Organizational PatternsCorinne Weisgerber
 

Recently uploaded (20)

Successful projects and failed programmes – the cost of not designing the who...
Successful projects and failed programmes – the cost of not designing the who...Successful projects and failed programmes – the cost of not designing the who...
Successful projects and failed programmes – the cost of not designing the who...
 
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdfDr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
 
SSC Hindu Religion and Moral Education MCQ Solutions 2024.pdf
SSC Hindu Religion and Moral Education MCQ Solutions 2024.pdfSSC Hindu Religion and Moral Education MCQ Solutions 2024.pdf
SSC Hindu Religion and Moral Education MCQ Solutions 2024.pdf
 
Decision on Curriculum Change Path: Towards Standards-Based Curriculum in Ghana
Decision on Curriculum Change Path: Towards Standards-Based Curriculum in GhanaDecision on Curriculum Change Path: Towards Standards-Based Curriculum in Ghana
Decision on Curriculum Change Path: Towards Standards-Based Curriculum in Ghana
 
BBA 603 FUNDAMENTAL OF E- COMMERCE UNIT 1.pptx
BBA 603 FUNDAMENTAL OF E- COMMERCE UNIT 1.pptxBBA 603 FUNDAMENTAL OF E- COMMERCE UNIT 1.pptx
BBA 603 FUNDAMENTAL OF E- COMMERCE UNIT 1.pptx
 
Risk in the changing world – Opportunity or threat
Risk in the changing world – Opportunity or threatRisk in the changing world – Opportunity or threat
Risk in the changing world – Opportunity or threat
 
Permeation enhancer of Transdermal drug delivery system
Permeation enhancer of Transdermal drug delivery systemPermeation enhancer of Transdermal drug delivery system
Permeation enhancer of Transdermal drug delivery system
 
Google Ad Grants Services at TechSoup.pdf
Google Ad Grants Services at TechSoup.pdfGoogle Ad Grants Services at TechSoup.pdf
Google Ad Grants Services at TechSoup.pdf
 
CLUBE PERLINGUAS .
CLUBE PERLINGUAS                        .CLUBE PERLINGUAS                        .
CLUBE PERLINGUAS .
 
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
 
Kartik Nair In Media Res Media Component
Kartik Nair In Media Res Media ComponentKartik Nair In Media Res Media Component
Kartik Nair In Media Res Media Component
 
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
 
2.22.24 Black Nationalism and the Nation of Islam.pptx
2.22.24 Black Nationalism and the Nation of Islam.pptx2.22.24 Black Nationalism and the Nation of Islam.pptx
2.22.24 Black Nationalism and the Nation of Islam.pptx
 
Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdf
Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdfDiploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdf
Diploma 2nd yr PHARMACOLOGY chapter 5 part 1.pdf
 
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdfA LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
 
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdf
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdfA Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdf
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdf
 
EDL 290F Week 2 - Good Company (2024).pdf
EDL 290F Week 2  - Good Company (2024).pdfEDL 290F Week 2  - Good Company (2024).pdf
EDL 290F Week 2 - Good Company (2024).pdf
 
MEC MAJUBA SADDENED BY THE PASSING AWAY OF THREE TEACHERS FOLLOWING A CAR ACC...
MEC MAJUBA SADDENED BY THE PASSING AWAY OF THREE TEACHERS FOLLOWING A CAR ACC...MEC MAJUBA SADDENED BY THE PASSING AWAY OF THREE TEACHERS FOLLOWING A CAR ACC...
MEC MAJUBA SADDENED BY THE PASSING AWAY OF THREE TEACHERS FOLLOWING A CAR ACC...
 
Nzinga Kika - The story of the queen
Nzinga Kika    -  The story of the queenNzinga Kika    -  The story of the queen
Nzinga Kika - The story of the queen
 
Persuasive Speaking and Organizational Patterns
Persuasive Speaking and Organizational PatternsPersuasive Speaking and Organizational Patterns
Persuasive Speaking and Organizational Patterns
 

How to Make Sequence Number in Odoo 16

  • 1. How to make Sequence Number in Odoo 16
  • 2. In Odoo 16, the sequence number is a field used to assign a unique, incremental number to records in a specific model. It helps in maintaining the order or sequence of records and can be useful in various scenarios.
  • 3. Here are some common use cases of sequence number: • Order and Ranking: Sequence numbers can be used to establish a specific order or ranking for records within a model. For example, in a list of tasks, the sequence number can determine the priority or order in which the tasks should be executed. • Document Numbering: Sequence numbers are commonly used to generate unique document numbers, such as invoices, purchase orders, sales orders, etc. Each time a new record is created, the sequence number field is automatically assigned a new, sequential value. • Sorting and Filtering: The sequence number field can be used for sorting and filtering records. By sorting records based on the sequence number, you can view them in a specific order, such as ascending or descending. • Workflow and Automation: Sequence numbers can be leveraged in workflow and automation rules. For example, you can define specific actions or triggers based on the sequence number of a record, allowing you to automate certain processes or notifications. • Reference and Identification: Sequence numbers can serve as a reference or identification for records. They provide a unique identifier that can be used to easily locate or reference specific records within a model.
  • 4. Let's talk about how to create a sequence number in Odoo 16 using Python and XML. • As seen in the image below, first we need to define a field for the sequence. • Then we need to define a function for creating sequence in the particular model.
  • 5. • And after that, make an XML file and create record for that.
  • 6. Let’s discuss each item in the XML file. • The ID is the ID of that record, it is unique for each record. And that record will be stored in the ir.sequence table. • name - is the Name of the record that will be created on the specified model. • Code - is the sequence code for the record. • Prefix - is a character field that gives the prefix of the sequence for the record. • Padding - is the size of the sequence. We can decide the size. • Active- It determines whether the sequence is currently active or not. • Number Next - The number_next field determines the value of the next sequence number to be generated. • Number Increment - The number_increment field determines the amount by which the sequence number increases with each new number generated.
  • 7. Let’s take a look at the UI,
  • 8. In the above screenshot we can see a sequence number is generated with a prefix of IN and the number is 0001 the first number is automatically generated as 1 and we create another record in the same model that will be 2 and so on and also here we can see the padding of the number is 4 that we will mentioned in the code.
  • 9. Also we can configure the sequence number from the general setting of Odoo, • Go to the "Settings" menu and select "Technical" -> "Sequences & Identifiers" -> "Sequences." • Click the "Create" button to create a new sequence. • Enter a name for the sequence, such as "Your Model." • Enter a code for the sequence, such as "your.model." • Choose a prefix and/or suffix for the sequence, if desired. • Set the "Next Number" field to the starting number for the sequence. • Set the "Padding" field to the number of digits you want the sequence number to have. • Select the "Implementation" option for the sequence, such as "Manual," "Date Range," or "Custom." • Save the sequence by clicking the "Save" button. • Use the sequence in your Odoo application by referencing it in your code or by using it in your forms and reports.
  • 10. Check our company website for related blogs and Odoo book. https://www.youtube.com/watch?v=lXD4 fI3tBdw