Skip to content

Commit

Permalink
[MIG] base_sequence_option: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed Aug 6, 2024
1 parent 5617226 commit 74f4fb4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
3 changes: 3 additions & 0 deletions base_sequence_option/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ Contributors
------------

- Kitti U. <[email protected]>
- [APSL-Nagarro](https://apsl.tech):

- Antoni Marroig <[email protected]>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion base_sequence_option/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Base Sequence Option",
"summary": "Alternative sequence options for specific models",
"version": "16.0.1.0.1",
"version": "17.0.1.0.0",
"author": "Ecosoft, Odoo Community Association (OCA)",
"maintainers": ["kittiu"],
"development_status": "Alpha",
Expand Down
4 changes: 0 additions & 4 deletions base_sequence_option/models/ir_sequence_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class IrSequenceOptionLine(models.Model):
model = fields.Selection(
related="base_id.model",
store=True,
readonly=True,
)
use_sequence_option = fields.Boolean(
related="base_id.use_sequence_option",
Expand All @@ -78,17 +77,14 @@ class IrSequenceOptionLine(models.Model):
prefix = fields.Char(
related="sequence_id.prefix",
string="Prefix",
readonly=True,
)
suffix = fields.Char(
related="sequence_id.suffix",
string="Suffix",
readonly=True,
)
implementation = fields.Selection(
related="sequence_id.implementation",
string="Implementation",
readonly=True,
)
company_id = fields.Many2one(
comodel_name="res.company",
Expand Down
2 changes: 2 additions & 0 deletions base_sequence_option/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
- Kitti U. \<<[email protected]>\>
- \[APSL-Nagarro\](<https://apsl.tech>):
- Antoni Marroig \<<[email protected]>\>
4 changes: 4 additions & 0 deletions base_sequence_option/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ <h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<ul class="simple">
<li>Kitti U. &lt;<a class="reference external" href="mailto:kittiu&#64;ecosoft.co.th">kittiu&#64;ecosoft.co.th</a>&gt;</li>
<li>[APSL-Nagarro](<a class="reference external" href="https://apsl.tech">https://apsl.tech</a>):<ul>
<li>Antoni Marroig &lt;<a class="reference external" href="mailto:amarroig&#64;apsl.net">amarroig&#64;apsl.net</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
12 changes: 6 additions & 6 deletions base_sequence_option/views/sequence_option_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</h1>
<group>
<group>
<field name="model" />
<field name="model" readonly="1" />
<field name="company_id" groups="base.group_multi_company" />
</group>
<group>
Expand All @@ -51,13 +51,13 @@
<field name="option_ids">
<tree>
<field name="name" />
<field name="model" invisible="1" />
<field name="model" column_invisible="1" />
<field name="filter_domain" string="Matching Domain" />
<field name="sequence_id" string="Use Sequence" />
<field name="prefix" />
<field name="suffix" />
<field name="implementation" />
<field name="company_id" invisible="1" />
<field name="prefix" readonly="1" />
<field name="suffix" readonly="1" />
<field name="implementation" readonly="1" />
<field name="company_id" column_invisible="1" />
</tree>
<form>
<group>
Expand Down

0 comments on commit 74f4fb4

Please sign in to comment.