Skip to content

Commit be75647

Browse files
committed
[MIG] barcodes_generator_abstract: Migration to 18.0
1 parent efbe739 commit be75647

File tree

12 files changed

+35
-9
lines changed

12 files changed

+35
-9
lines changed

barcodes_generator_abstract/README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ Contributors
176176

177177
178178

179+
- `Trobz <https://trobz.com>`__:
180+
181+
- Khoi (Kien Kim) <[email protected]>
182+
179183
Other credits
180184
-------------
181185

@@ -186,6 +190,11 @@ Images
186190
licence:
187191
http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org.html
188192

193+
The migration of this module from 17.0 to 18.0 was financially supported
194+
by:
195+
196+
- Camptocamp
197+
189198
Maintainers
190199
-----------
191200

barcodes_generator_abstract/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"name": "Generate Barcodes (Abstract)",
99
"summary": "Generate Barcodes for Any Models",
10-
"version": "17.0.1.0.0",
10+
"version": "18.0.1.0.0",
1111
"category": "Tools",
1212
"author": "GRAP, La Louve, LasLabs, Odoo Community Association (OCA)",
1313
"maintainers": ["legalsylvain"],

barcodes_generator_abstract/models/barcode_generate_mixin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import barcode
88

9-
from odoo import _, api, exceptions, fields, models
9+
from odoo import api, exceptions, fields, models
1010

1111

1212
class BarcodeGenerateMixin(models.AbstractModel):
@@ -62,7 +62,7 @@ def generate_base(self):
6262
for item in self:
6363
if item.generate_type != "sequence":
6464
raise exceptions.UserError(
65-
_(
65+
self.env._(
6666
"Generate Base can be used only with barcode rule with"
6767
" 'Generate Type' set to 'Base managed by Sequence'"
6868
)

barcodes_generator_abstract/models/barcode_rule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
55
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
66

7-
from odoo import _, api, fields, models
7+
from odoo import api, fields, models
88

99
_GENERATE_TYPE = [
1010
("no", "No generation"),
@@ -84,6 +84,6 @@ def generate_sequence_if_required(self):
8484
@api.model
8585
def _prepare_sequence(self, rule):
8686
return {
87-
"name": _("Sequence - %s") % rule.name,
87+
"name": self.env._("Sequence - %s") % rule.name,
8888
"padding": rule.padding,
8989
}

barcodes_generator_abstract/readme/CONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
- Carlos Roca
55
- [Ooops404](https://www.ooops404.com):
66
- Ilyas \<<[email protected]>\>
7+
- [Trobz](https://trobz.com):
8+
- Khoi (Kien Kim) \<<[email protected]>\>

barcodes_generator_abstract/readme/CREDITS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
- Icon of the module is based on the Oxygen Team work and is under LGPL
44
licence:
55
<http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org.html>
6+
7+
8+
The migration of this module from 17.0 to 18.0 was financially supported by:
9+
10+
- Camptocamp
3.47 KB
Loading
10.8 KB
Loading
19.7 KB
Loading

barcodes_generator_abstract/static/description/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,10 @@ <h2><a class="toc-backref" href="#toc-entry-9">Contributors</a></h2>
521521
<li>Ilyas &lt;<a class="reference external" href="mailto:irazor147&#64;gmail.com">irazor147&#64;gmail.com</a>&gt;</li>
522522
</ul>
523523
</li>
524+
<li><a class="reference external" href="https://trobz.com">Trobz</a>:<ul>
525+
<li>Khoi (Kien Kim) &lt;<a class="reference external" href="mailto:khoikk&#64;trobz.com">khoikk&#64;trobz.com</a>&gt;</li>
526+
</ul>
527+
</li>
524528
</ul>
525529
</div>
526530
<div class="section" id="other-credits">
@@ -532,6 +536,11 @@ <h3><a class="toc-backref" href="#toc-entry-11">Images</a></h3>
532536
licence:
533537
<a class="reference external" href="http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org.html">http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org.html</a></li>
534538
</ul>
539+
<p>The migration of this module from 17.0 to 18.0 was financially supported
540+
by:</p>
541+
<ul class="simple">
542+
<li>Camptocamp</li>
543+
</ul>
535544
</div>
536545
</div>
537546
<div class="section" id="maintainers">

0 commit comments

Comments
 (0)