TIP: You can type at any time to perform a new search.
Base Sequence Option
base_sequence_option · OCA/server-tools
- Repository
- OCA/server-tools · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Tools
- Folder size
- 0.08 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/server-tools
- Last tracking update
- 2026-08-07 08:42:57
- Authors
- Odoo Community Association (OCA), Ecosoft
- Maintainers
- Odoo Community Association (OCA), Ecosoft
- Committers
- Stefan Rijnhart, Weblate, OCA-git-bot, oca-ci, Frédéric GRALL
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- odoo_test_helper
- System dependencies
- None
- Required by
- account_sequence_option, hr_expense_sequence_option
- Description
This module allow user to add optional sequences to some document model. On which sequence is used, is based on domain matching with document values (and original sequence will be bypassed). For example, it is now possible to, - Avoid using Odoo automatic sequence on invoice and vendor bill with old style sequence. - Customer payment and vendor payment to run on different sequence. - Assign different sales order sequence based on customer region. This is a base module and does nothing by itself. Following are modules that will allow managing sequence options for each type of documents, I.e., - Purchase Order: purchase_sequence_option - Invoice / Bill / Refund / Payment: account_sequence_option - Others: create a new module with few lines of code
Code Analysis ⓘ
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_ir_sequence_option_form |
view.ir.sequence.option.form | ir.sequence.option | form | New |
view_ir_sequence_option_line_tree |
view.ir.sequence.option.line.list | ir.sequence.option.line | list | New |
view_ir_sequence_option_tree |
view.ir.sequence.option.list | ir.sequence.option | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (0)
No new fields.
Public methods (2)-
next_by_code(self, sequence_code, sequence_date=None)@api.model -
next_by_id(self, sequence_date=None)
New fields (5)
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>help='Company related to this sequence option'index=Truereadonly=Falserequired=Truestring='Company' -
modelSelectionindex=Truereadonly=Falserequired=Trueselection=[]string='Apply On Model' -
nameChar -
option_idsOne2many → ir.sequence.option.linecomodel_name='ir.sequence.option.line'inverse_name='base_id'string='Sequence Options' -
use_sequence_optionBooleanhelp='If checked, Odoo will try to find the new matching sequence first, if not found, fall back to use the original Odoo sequence.'string='Use sequence options'
No public methods.
New fields (10)
-
base_idMany2one → ir.sequence.optioncomodel_name='ir.sequence.option'index=Trueondelete='cascade'required=True -
company_idMany2one → res.companycomodel_name='res.company'related='base_id.company_id'store=True -
filter_domainChardefault='[]'help='Find matching option by document values'string='Apply On' -
implementationSelectionrelated='sequence_id.implementation'string='Implementation' -
modelSelectionrelated='base_id.model'store=True -
nameCharrequired=Truestring='Description' -
prefixCharrelated='sequence_id.prefix'string='Prefix' -
sequence_idMany2one → ir.sequencecheck_company=Truecomodel_name='ir.sequence'required=Truestring='Sequence' -
suffixCharrelated='sequence_id.suffix'string='Suffix' -
use_sequence_optionBooleanrelated='base_id.use_sequence_option'
-
get_model_options(self, model) -
get_sequence(self, record, options=False)Find sequence option that match the record values
Loading…
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 197 days ago
- Last activity
- 84 days ago
- Repository
- OCA/server-tools
- Pull request
- [19.0][MIG] base_sequence_option (#3514)