From fa1fde2a152c687c9fefca05a2afb07d41da87b6 Mon Sep 17 00:00:00 2001 From: Eric Antones Date: Sat, 20 Apr 2019 11:27:02 +0200 Subject: [PATCH 1/7] [ADD] stock_location_tag: new module --- stock_location_tag/README.rst | 26 +++++++++++ stock_location_tag/__init__.py | 5 +++ stock_location_tag/__manifest__.py | 23 ++++++++++ stock_location_tag/models/__init__.py | 6 +++ stock_location_tag/models/stock_location.py | 13 ++++++ .../models/stock_location_tag.py | 21 +++++++++ .../security/ir.model.access.csv | 3 ++ .../security/stock_location_tag_security.xml | 13 ++++++ .../static/description/icon.png | Bin 0 -> 6342 bytes .../views/stock_location_tag_views.xml | 42 ++++++++++++++++++ .../views/stock_location_views.xml | 17 +++++++ 11 files changed, 169 insertions(+) create mode 100644 stock_location_tag/README.rst create mode 100644 stock_location_tag/__init__.py create mode 100644 stock_location_tag/__manifest__.py create mode 100644 stock_location_tag/models/__init__.py create mode 100644 stock_location_tag/models/stock_location.py create mode 100644 stock_location_tag/models/stock_location_tag.py create mode 100644 stock_location_tag/security/ir.model.access.csv create mode 100644 stock_location_tag/security/stock_location_tag_security.xml create mode 100644 stock_location_tag/static/description/icon.png create mode 100644 stock_location_tag/views/stock_location_tag_views.xml create mode 100644 stock_location_tag/views/stock_location_views.xml diff --git a/stock_location_tag/README.rst b/stock_location_tag/README.rst new file mode 100644 index 000000000..abd1be75b --- /dev/null +++ b/stock_location_tag/README.rst @@ -0,0 +1,26 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +================== +Stock location tag +================== + +This module adds tags on location. + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed feedback. + +Credits +======= + +Contributors +------------ + +* Eric Antones diff --git a/stock_location_tag/__init__.py b/stock_location_tag/__init__.py new file mode 100644 index 000000000..38b2ba65b --- /dev/null +++ b/stock_location_tag/__init__.py @@ -0,0 +1,5 @@ +# Copyright NuoBiT Solutions, S.L. () +# Eric Antones +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +from . import models diff --git a/stock_location_tag/__manifest__.py b/stock_location_tag/__manifest__.py new file mode 100644 index 000000000..0037664ed --- /dev/null +++ b/stock_location_tag/__manifest__.py @@ -0,0 +1,23 @@ +# Copyright NuoBiT Solutions, S.L. () +# Eric Antones +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +{ + 'name': "Stock location tag", + 'summary': "This module adds tags on location", + 'author': 'NuoBiT Solutions, S.L., Eric Antones', + 'category': 'Warehouse', + 'version': '11.0.0.1.0', + 'license': 'AGPL-3', + 'website': 'https://github.com/nuobit', + 'depends': [ + 'stock', + ], + 'data': [ + 'security/stock_location_tag_security.xml', + 'security/ir.model.access.csv', + 'views/stock_location_views.xml', + 'views/stock_location_tag_views.xml', + ], + 'installable': True, +} diff --git a/stock_location_tag/models/__init__.py b/stock_location_tag/models/__init__.py new file mode 100644 index 000000000..c100b537e --- /dev/null +++ b/stock_location_tag/models/__init__.py @@ -0,0 +1,6 @@ +# Copyright NuoBiT Solutions, S.L. () +# Eric Antones +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +from . import stock_location +from . import stock_location_tag diff --git a/stock_location_tag/models/stock_location.py b/stock_location_tag/models/stock_location.py new file mode 100644 index 000000000..841403e24 --- /dev/null +++ b/stock_location_tag/models/stock_location.py @@ -0,0 +1,13 @@ +# Copyright NuoBiT Solutions, S.L. () +# Eric Antones +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +from odoo import models, fields + + +class StockLocation(models.Model): + _inherit = "stock.location" + + tag_ids = fields.Many2many(comodel_name='stock.location.tag', string="Location Tags", + relation='stock_location_location_tag_rel', + column1='location_id', column2='tag_id') diff --git a/stock_location_tag/models/stock_location_tag.py b/stock_location_tag/models/stock_location_tag.py new file mode 100644 index 000000000..19695b8a2 --- /dev/null +++ b/stock_location_tag/models/stock_location_tag.py @@ -0,0 +1,21 @@ +# Copyright NuoBiT Solutions, S.L. () +# Eric Antones +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +from odoo import models, fields + + +class StockLocationTag(models.Model): + _name = "stock.location.tag" + _description = "Location Tags" + + name = fields.Char(required=True, translate=True) + color = fields.Integer(string='Color Index') + company_id = fields.Many2one('res.company', string='Company', + default=lambda self: self.env.user.company_id, + readonly=True, required=True) + + _sql_constraints = [ + ('name_company_uniq', 'unique (name,company_id)', + "Tag name already exists. It must be unique per company!"), + ] diff --git a/stock_location_tag/security/ir.model.access.csv b/stock_location_tag/security/ir.model.access.csv new file mode 100644 index 000000000..737c25840 --- /dev/null +++ b/stock_location_tag/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_stock_location_tag_manager,access_stock_location_tag.manager,model_stock_location_tag,stock.group_stock_manager,1,1,1,1 +access_stock_location_tag_user,access_stock_location_tag.user,model_stock_location_tag,base.group_user,1,0,0,0 \ No newline at end of file diff --git a/stock_location_tag/security/stock_location_tag_security.xml b/stock_location_tag/security/stock_location_tag_security.xml new file mode 100644 index 000000000..182b54d67 --- /dev/null +++ b/stock_location_tag/security/stock_location_tag_security.xml @@ -0,0 +1,13 @@ + + + + + Stock location tag multi-company rule + + + ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] + + + diff --git a/stock_location_tag/static/description/icon.png b/stock_location_tag/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1cd641e792c30455187ca30940bc0f329ce8bbb0 GIT binary patch literal 6342 zcmd^^hf`C}*TzHWpfm-MZa|7OjYtjE(4`3pP0Eid3J8V{0s)mKJ<q zp^9|rp$mb~2}po9-@oIXJG(oxcjoS%d!O@s&d!Z9HP*e##KQyt0IurmK_64bp8pyH z9i^|ds>-JfbWVo4P{8GX*QeIfbjl2)kDfIG0ALvZuTgp2Zf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Bm+t`9B_${w9F7WfM{Jvawk;HDc*{Sa_Sla|zqX!vbKV%>gB|z6BCc z8_bdnPnzloGP1I)!^5hnC6CLZUU`;nO2NF2)FaAkYhQL$Z58+`p75dj7RKse#Z!uacCm z0@|m~U!QZOdb|V~`ktFK4;lg_ZOCjFXeV4`jGj&bh7Q6BEyN8~yGd*JyzwFbIRaAf z#KG$rvQxWFvqwn`i6jBQ?6o+k+oOC)Gj9ChlgabiScr};b5|opxUYjCZOwmhjTj6W zFzJt_htTuopW4IRiQ}r0L}`w=pE{HN<@(9Hl11P5cHmN6A1F^sg2OWXcw<+q2x>I5 zq9Bu>PBob6#^vrr<|IC)m+zJpFRRcCVsqbspNybriu&!R=H^@RcG#aBGz9RH}ZI=>4 zi(m?IA?Vr$Q7?wN6ZW7H`S?3}K8=$7J5MjWKri=_igw1%J?0~*6e_Ii*1&23dGcF} z&=vaMgF!^veGQ1f$3k?WK5Jaw%==+Bb!tI6zQ68&-dQ3Orl+Tqh#Nt?dBEV_w^wkjY+qJ+X*NCMs%J-Lc4%}pKryM#O)O&9 un*HHVB-AlUN`suyDkKONktc!@Ievk;6wT20MOSqhE{1gM*SZGeqiYU literal 0 HcmV?d00001 diff --git a/stock_location_tag/views/stock_location_tag_views.xml b/stock_location_tag/views/stock_location_tag_views.xml new file mode 100644 index 000000000..4d8de7703 --- /dev/null +++ b/stock_location_tag/views/stock_location_tag_views.xml @@ -0,0 +1,42 @@ + + + + + stock.location.tag.view.tree + stock.location.tag + + + + + + + + + + stock.location.tag.view.form + stock.location.tag + +
+ + + + + + + + +
+
+
+ + + Location Tags + stock.location.tag + tree,form + + + +
\ No newline at end of file diff --git a/stock_location_tag/views/stock_location_views.xml b/stock_location_tag/views/stock_location_views.xml new file mode 100644 index 000000000..56a1e76f9 --- /dev/null +++ b/stock_location_tag/views/stock_location_views.xml @@ -0,0 +1,17 @@ + + + + + stock.location.form + stock.location + + + + + + + + \ No newline at end of file From 600f87bf43ae1f9a5dc3cecc1d2239135c87f339 Mon Sep 17 00:00:00 2001 From: Eric Antones Date: Mon, 22 Apr 2019 22:27:32 +0200 Subject: [PATCH 2/7] [REF] stock_location_tag: redundant field description --- stock_location_tag/__manifest__.py | 2 +- stock_location_tag/models/stock_location.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stock_location_tag/__manifest__.py b/stock_location_tag/__manifest__.py index 0037664ed..e2d01ecd7 100644 --- a/stock_location_tag/__manifest__.py +++ b/stock_location_tag/__manifest__.py @@ -7,7 +7,7 @@ 'summary': "This module adds tags on location", 'author': 'NuoBiT Solutions, S.L., Eric Antones', 'category': 'Warehouse', - 'version': '11.0.0.1.0', + 'version': '11.0.0.1.1', 'license': 'AGPL-3', 'website': 'https://github.com/nuobit', 'depends': [ diff --git a/stock_location_tag/models/stock_location.py b/stock_location_tag/models/stock_location.py index 841403e24..059b45c1b 100644 --- a/stock_location_tag/models/stock_location.py +++ b/stock_location_tag/models/stock_location.py @@ -8,6 +8,6 @@ class StockLocation(models.Model): _inherit = "stock.location" - tag_ids = fields.Many2many(comodel_name='stock.location.tag', string="Location Tags", + tag_ids = fields.Many2many(comodel_name='stock.location.tag', string='Tags', relation='stock_location_location_tag_rel', column1='location_id', column2='tag_id') From 60f56883c1deed45346cf22faff4bd38ed067a3a Mon Sep 17 00:00:00 2001 From: mreficent Date: Mon, 30 Aug 2021 15:46:33 +0200 Subject: [PATCH 3/7] [IMP] stock_location_tag: black, isort, prettier --- stock_location_tag/__manifest__.py | 30 +++++++++---------- stock_location_tag/models/stock_location.py | 12 +++++--- .../models/stock_location_tag.py | 21 ++++++++----- .../security/ir.model.access.csv | 2 +- .../security/stock_location_tag_security.xml | 10 ++++--- .../views/stock_location_tag_views.xml | 19 +++++++----- .../views/stock_location_views.xml | 13 ++++---- 7 files changed, 63 insertions(+), 44 deletions(-) diff --git a/stock_location_tag/__manifest__.py b/stock_location_tag/__manifest__.py index e2d01ecd7..9a05eb204 100644 --- a/stock_location_tag/__manifest__.py +++ b/stock_location_tag/__manifest__.py @@ -3,21 +3,21 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) { - 'name': "Stock location tag", - 'summary': "This module adds tags on location", - 'author': 'NuoBiT Solutions, S.L., Eric Antones', - 'category': 'Warehouse', - 'version': '11.0.0.1.1', - 'license': 'AGPL-3', - 'website': 'https://github.com/nuobit', - 'depends': [ - 'stock', + "name": "Stock location tag", + "summary": "This module adds tags on location", + "author": "NuoBiT Solutions, S.L., Eric Antones", + "category": "Warehouse", + "version": "11.0.0.1.1", + "license": "AGPL-3", + "website": "https://github.com/nuobit/odoo-addons", + "depends": [ + "stock", ], - 'data': [ - 'security/stock_location_tag_security.xml', - 'security/ir.model.access.csv', - 'views/stock_location_views.xml', - 'views/stock_location_tag_views.xml', + "data": [ + "security/stock_location_tag_security.xml", + "security/ir.model.access.csv", + "views/stock_location_views.xml", + "views/stock_location_tag_views.xml", ], - 'installable': True, + "installable": True, } diff --git a/stock_location_tag/models/stock_location.py b/stock_location_tag/models/stock_location.py index 059b45c1b..136432602 100644 --- a/stock_location_tag/models/stock_location.py +++ b/stock_location_tag/models/stock_location.py @@ -2,12 +2,16 @@ # Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) -from odoo import models, fields +from odoo import fields, models class StockLocation(models.Model): _inherit = "stock.location" - tag_ids = fields.Many2many(comodel_name='stock.location.tag', string='Tags', - relation='stock_location_location_tag_rel', - column1='location_id', column2='tag_id') + tag_ids = fields.Many2many( + comodel_name="stock.location.tag", + string="Tags", + relation="stock_location_location_tag_rel", + column1="location_id", + column2="tag_id", + ) diff --git a/stock_location_tag/models/stock_location_tag.py b/stock_location_tag/models/stock_location_tag.py index 19695b8a2..e61e9ec61 100644 --- a/stock_location_tag/models/stock_location_tag.py +++ b/stock_location_tag/models/stock_location_tag.py @@ -2,7 +2,7 @@ # Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) -from odoo import models, fields +from odoo import fields, models class StockLocationTag(models.Model): @@ -10,12 +10,19 @@ class StockLocationTag(models.Model): _description = "Location Tags" name = fields.Char(required=True, translate=True) - color = fields.Integer(string='Color Index') - company_id = fields.Many2one('res.company', string='Company', - default=lambda self: self.env.user.company_id, - readonly=True, required=True) + color = fields.Integer(string="Color Index") + company_id = fields.Many2one( + "res.company", + string="Company", + default=lambda self: self.env.user.company_id, + readonly=True, + required=True, + ) _sql_constraints = [ - ('name_company_uniq', 'unique (name,company_id)', - "Tag name already exists. It must be unique per company!"), + ( + "name_company_uniq", + "unique (name,company_id)", + "Tag name already exists. It must be unique per company!", + ), ] diff --git a/stock_location_tag/security/ir.model.access.csv b/stock_location_tag/security/ir.model.access.csv index 737c25840..b8d54e719 100644 --- a/stock_location_tag/security/ir.model.access.csv +++ b/stock_location_tag/security/ir.model.access.csv @@ -1,3 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_stock_location_tag_manager,access_stock_location_tag.manager,model_stock_location_tag,stock.group_stock_manager,1,1,1,1 -access_stock_location_tag_user,access_stock_location_tag.user,model_stock_location_tag,base.group_user,1,0,0,0 \ No newline at end of file +access_stock_location_tag_user,access_stock_location_tag.user,model_stock_location_tag,base.group_user,1,0,0,0 diff --git a/stock_location_tag/security/stock_location_tag_security.xml b/stock_location_tag/security/stock_location_tag_security.xml index 182b54d67..c332417be 100644 --- a/stock_location_tag/security/stock_location_tag_security.xml +++ b/stock_location_tag/security/stock_location_tag_security.xml @@ -1,13 +1,15 @@ - + Stock location tag multi-company rule - - - ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] + + + ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] diff --git a/stock_location_tag/views/stock_location_tag_views.xml b/stock_location_tag/views/stock_location_tag_views.xml index 4d8de7703..7cbcfa32d 100644 --- a/stock_location_tag/views/stock_location_tag_views.xml +++ b/stock_location_tag/views/stock_location_tag_views.xml @@ -1,4 +1,4 @@ - + @@ -8,8 +8,8 @@ stock.location.tag - - + + @@ -22,8 +22,8 @@ - - + + @@ -37,6 +37,9 @@ tree,form - - \ No newline at end of file + + diff --git a/stock_location_tag/views/stock_location_views.xml b/stock_location_tag/views/stock_location_views.xml index 56a1e76f9..2e7d4fde4 100644 --- a/stock_location_tag/views/stock_location_views.xml +++ b/stock_location_tag/views/stock_location_views.xml @@ -1,4 +1,4 @@ - + @@ -6,12 +6,15 @@ stock.location.form stock.location - + - + - \ No newline at end of file + From 79f4e99ed1a614f1bc2f826a36f42e3a2f4428a7 Mon Sep 17 00:00:00 2001 From: mreficent Date: Mon, 30 Aug 2021 16:02:41 +0200 Subject: [PATCH 4/7] [MIG] stock_location_tag: Migration to 14.0 --- stock_location_tag/README.rst | 6 +++--- stock_location_tag/__init__.py | 2 -- stock_location_tag/__manifest__.py | 2 +- stock_location_tag/models/__init__.py | 2 -- stock_location_tag/models/stock_location_tag.py | 2 +- stock_location_tag/security/stock_location_tag_security.xml | 2 +- stock_location_tag/views/stock_location_tag_views.xml | 2 +- stock_location_tag/views/stock_location_views.xml | 2 +- 8 files changed, 8 insertions(+), 12 deletions(-) diff --git a/stock_location_tag/README.rst b/stock_location_tag/README.rst index abd1be75b..f0136dc85 100644 --- a/stock_location_tag/README.rst +++ b/stock_location_tag/README.rst @@ -1,6 +1,6 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 ================== Stock location tag diff --git a/stock_location_tag/__init__.py b/stock_location_tag/__init__.py index 38b2ba65b..21101d349 100644 --- a/stock_location_tag/__init__.py +++ b/stock_location_tag/__init__.py @@ -1,5 +1,3 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from . import models diff --git a/stock_location_tag/__manifest__.py b/stock_location_tag/__manifest__.py index 9a05eb204..32a38c5e6 100644 --- a/stock_location_tag/__manifest__.py +++ b/stock_location_tag/__manifest__.py @@ -7,7 +7,7 @@ "summary": "This module adds tags on location", "author": "NuoBiT Solutions, S.L., Eric Antones", "category": "Warehouse", - "version": "11.0.0.1.1", + "version": "14.0.1.0.0", "license": "AGPL-3", "website": "https://github.com/nuobit/odoo-addons", "depends": [ diff --git a/stock_location_tag/models/__init__.py b/stock_location_tag/models/__init__.py index c100b537e..8fcf356b5 100644 --- a/stock_location_tag/models/__init__.py +++ b/stock_location_tag/models/__init__.py @@ -1,5 +1,3 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from . import stock_location diff --git a/stock_location_tag/models/stock_location_tag.py b/stock_location_tag/models/stock_location_tag.py index e61e9ec61..63e7444d4 100644 --- a/stock_location_tag/models/stock_location_tag.py +++ b/stock_location_tag/models/stock_location_tag.py @@ -14,7 +14,7 @@ class StockLocationTag(models.Model): company_id = fields.Many2one( "res.company", string="Company", - default=lambda self: self.env.user.company_id, + default=lambda self: self.env.company, readonly=True, required=True, ) diff --git a/stock_location_tag/security/stock_location_tag_security.xml b/stock_location_tag/security/stock_location_tag_security.xml index c332417be..bd9dd492f 100644 --- a/stock_location_tag/security/stock_location_tag_security.xml +++ b/stock_location_tag/security/stock_location_tag_security.xml @@ -9,7 +9,7 @@ ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] + >['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] diff --git a/stock_location_tag/views/stock_location_tag_views.xml b/stock_location_tag/views/stock_location_tag_views.xml index 7cbcfa32d..9b1189a5e 100644 --- a/stock_location_tag/views/stock_location_tag_views.xml +++ b/stock_location_tag/views/stock_location_tag_views.xml @@ -21,7 +21,7 @@
- + diff --git a/stock_location_tag/views/stock_location_views.xml b/stock_location_tag/views/stock_location_views.xml index 2e7d4fde4..9f84db014 100644 --- a/stock_location_tag/views/stock_location_views.xml +++ b/stock_location_tag/views/stock_location_views.xml @@ -8,7 +8,7 @@ stock.location - + Date: Mon, 3 Mar 2025 13:05:17 +0100 Subject: [PATCH 5/7] [MIG] stock_location_tag: Migration to 16.0 --- stock_location_tag/README.rst | 56 ++- stock_location_tag/__manifest__.py | 8 +- stock_location_tag/models/__init__.py | 2 - stock_location_tag/models/stock_location.py | 3 +- .../models/stock_location_tag.py | 3 +- stock_location_tag/readme/CONTRIBUTORS.md | 3 + stock_location_tag/readme/DESCRIPTION.md | 1 + .../security/stock_location_tag_security.xml | 3 +- .../static/description/index.html | 422 ++++++++++++++++++ .../views/stock_location_tag_views.xml | 3 +- .../views/stock_location_views.xml | 3 +- 11 files changed, 482 insertions(+), 25 deletions(-) create mode 100644 stock_location_tag/readme/CONTRIBUTORS.md create mode 100644 stock_location_tag/readme/DESCRIPTION.md create mode 100644 stock_location_tag/static/description/index.html diff --git a/stock_location_tag/README.rst b/stock_location_tag/README.rst index f0136dc85..788511771 100644 --- a/stock_location_tag/README.rst +++ b/stock_location_tag/README.rst @@ -1,26 +1,64 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - ================== Stock location tag ================== +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:52f8415c87c14905fc2db50c839926479bb3c394f1bf5af8abd06caf74e1c9bf + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-nuobit%2Fodoo--addons-lightgray.png?logo=github + :target: https://github.com/nuobit/odoo-addons/tree/16.0/stock_location_tag + :alt: nuobit/odoo-addons + +|badge1| |badge2| |badge3| + This module adds tags on location. +**Table of contents** + +.. contents:: + :local: Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smashing it by providing a detailed and welcomed feedback. +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +------- + +* NuoBiT Solutions SL +* Eric Antones + Contributors ------------ -* Eric Antones +- `NuoBiT `__: + + - Eric Antones eantones@nuobit.com + - Bijaya Kumal bkumal@nuobit.com + +Maintainers +----------- + +This module is part of the `nuobit/odoo-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/stock_location_tag/__manifest__.py b/stock_location_tag/__manifest__.py index 32a38c5e6..4919432c2 100644 --- a/stock_location_tag/__manifest__.py +++ b/stock_location_tag/__manifest__.py @@ -1,13 +1,13 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones +# Copyright NuoBiT - Eric Antones +# Copyright NuoBiT 2025 - Bijaya Kumal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) { "name": "Stock location tag", "summary": "This module adds tags on location", - "author": "NuoBiT Solutions, S.L., Eric Antones", + "author": "NuoBiT Solutions SL, Eric Antones", "category": "Warehouse", - "version": "14.0.1.0.0", + "version": "16.0.1.0.0", "license": "AGPL-3", "website": "https://github.com/nuobit/odoo-addons", "depends": [ diff --git a/stock_location_tag/models/__init__.py b/stock_location_tag/models/__init__.py index 8fcf356b5..3dfd4b9c2 100644 --- a/stock_location_tag/models/__init__.py +++ b/stock_location_tag/models/__init__.py @@ -1,4 +1,2 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) - from . import stock_location from . import stock_location_tag diff --git a/stock_location_tag/models/stock_location.py b/stock_location_tag/models/stock_location.py index 136432602..1a27b7344 100644 --- a/stock_location_tag/models/stock_location.py +++ b/stock_location_tag/models/stock_location.py @@ -1,5 +1,4 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones +# Copyright NuoBiT - Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models diff --git a/stock_location_tag/models/stock_location_tag.py b/stock_location_tag/models/stock_location_tag.py index 63e7444d4..3e01bd1b1 100644 --- a/stock_location_tag/models/stock_location_tag.py +++ b/stock_location_tag/models/stock_location_tag.py @@ -1,5 +1,4 @@ -# Copyright NuoBiT Solutions, S.L. () -# Eric Antones +# Copyright NuoBiT - Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models diff --git a/stock_location_tag/readme/CONTRIBUTORS.md b/stock_location_tag/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..09afb8b5c --- /dev/null +++ b/stock_location_tag/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [NuoBiT](https://www.nuobit.com): + - Eric Antones + - Bijaya Kumal diff --git a/stock_location_tag/readme/DESCRIPTION.md b/stock_location_tag/readme/DESCRIPTION.md new file mode 100644 index 000000000..74dcece25 --- /dev/null +++ b/stock_location_tag/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module adds tags on location. diff --git a/stock_location_tag/security/stock_location_tag_security.xml b/stock_location_tag/security/stock_location_tag_security.xml index bd9dd492f..069e15ffc 100644 --- a/stock_location_tag/security/stock_location_tag_security.xml +++ b/stock_location_tag/security/stock_location_tag_security.xml @@ -1,6 +1,5 @@ - diff --git a/stock_location_tag/static/description/index.html b/stock_location_tag/static/description/index.html new file mode 100644 index 000000000..26faa1129 --- /dev/null +++ b/stock_location_tag/static/description/index.html @@ -0,0 +1,422 @@ + + + + + + +Stock location tag + + + +
+

Stock location tag

+ + +

Beta License: AGPL-3 nuobit/odoo-addons

+

This module adds tags on location.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • NuoBiT Solutions SL
  • +
  • Eric Antones
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the nuobit/odoo-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/stock_location_tag/views/stock_location_tag_views.xml b/stock_location_tag/views/stock_location_tag_views.xml index 9b1189a5e..b1b934c03 100644 --- a/stock_location_tag/views/stock_location_tag_views.xml +++ b/stock_location_tag/views/stock_location_tag_views.xml @@ -1,6 +1,5 @@ - diff --git a/stock_location_tag/views/stock_location_views.xml b/stock_location_tag/views/stock_location_views.xml index 9f84db014..ab06f02b0 100644 --- a/stock_location_tag/views/stock_location_views.xml +++ b/stock_location_tag/views/stock_location_views.xml @@ -1,6 +1,5 @@ - From 995b20a3a1d992d86380cd7ac21c4c3b98e17ea4 Mon Sep 17 00:00:00 2001 From: ??? Date: Fri, 19 Sep 2025 12:15:45 +0200 Subject: [PATCH 6/7] [IMP] stock_location_tag: pre-commit auto fixes --- stock_location_tag/README.rst | 12 ++++++------ stock_location_tag/__manifest__.py | 2 +- stock_location_tag/pyproject.toml | 3 +++ stock_location_tag/static/description/index.html | 9 ++++----- 4 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 stock_location_tag/pyproject.toml diff --git a/stock_location_tag/README.rst b/stock_location_tag/README.rst index 788511771..b975b57d4 100644 --- a/stock_location_tag/README.rst +++ b/stock_location_tag/README.rst @@ -16,9 +16,9 @@ Stock location tag .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-nuobit%2Fodoo--addons-lightgray.png?logo=github - :target: https://github.com/nuobit/odoo-addons/tree/16.0/stock_location_tag - :alt: nuobit/odoo-addons +.. |badge3| image:: https://img.shields.io/badge/github-NuoBiT%2Fodoo--addons-lightgray.png?logo=github + :target: https://github.com/NuoBiT/odoo-addons/tree/18.0/stock_location_tag + :alt: NuoBiT/odoo-addons |badge1| |badge2| |badge3| @@ -32,10 +32,10 @@ This module adds tags on location. Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -59,6 +59,6 @@ Contributors Maintainers ----------- -This module is part of the `nuobit/odoo-addons `_ project on GitHub. +This module is part of the `NuoBiT/odoo-addons `_ project on GitHub. You are welcome to contribute. diff --git a/stock_location_tag/__manifest__.py b/stock_location_tag/__manifest__.py index 4919432c2..f1ef4f7e7 100644 --- a/stock_location_tag/__manifest__.py +++ b/stock_location_tag/__manifest__.py @@ -9,7 +9,7 @@ "category": "Warehouse", "version": "16.0.1.0.0", "license": "AGPL-3", - "website": "https://github.com/nuobit/odoo-addons", + "website": "https://github.com/NuoBiT/odoo-addons", "depends": [ "stock", ], diff --git a/stock_location_tag/pyproject.toml b/stock_location_tag/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/stock_location_tag/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/stock_location_tag/static/description/index.html b/stock_location_tag/static/description/index.html index 26faa1129..5b2a28e48 100644 --- a/stock_location_tag/static/description/index.html +++ b/stock_location_tag/static/description/index.html @@ -1,4 +1,3 @@ - @@ -370,7 +369,7 @@

Stock location tag

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:52f8415c87c14905fc2db50c839926479bb3c394f1bf5af8abd06caf74e1c9bf !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 nuobit/odoo-addons

+

Beta License: AGPL-3 NuoBiT/odoo-addons

This module adds tags on location.

Table of contents

@@ -386,10 +385,10 @@

Stock location tag

Bug Tracker

-

Bugs are tracked on GitHub Issues. +

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -413,7 +412,7 @@

Contributors

Maintainers

-

This module is part of the nuobit/odoo-addons project on GitHub.

+

This module is part of the NuoBiT/odoo-addons project on GitHub.

You are welcome to contribute.

From e626f265c8b337b3ee03068cf87b3cde1d88ec17 Mon Sep 17 00:00:00 2001 From: ??? Date: Fri, 19 Sep 2025 12:18:46 +0200 Subject: [PATCH 7/7] [MIG] stock_location_tag: Migration to 18.0 --- stock_location_tag/README.rst | 2 +- stock_location_tag/__init__.py | 2 - stock_location_tag/__manifest__.py | 10 +-- stock_location_tag/i18n/es.po | 83 +++++++++++++++++++ stock_location_tag/models/stock_location.py | 2 +- .../models/stock_location_tag.py | 2 +- stock_location_tag/readme/CONTRIBUTORS.md | 1 + .../security/stock_location_tag_security.xml | 2 +- .../static/description/index.html | 2 +- .../views/stock_location_tag_views.xml | 8 +- .../views/stock_location_views.xml | 5 +- 11 files changed, 101 insertions(+), 18 deletions(-) create mode 100644 stock_location_tag/i18n/es.po diff --git a/stock_location_tag/README.rst b/stock_location_tag/README.rst index b975b57d4..51ee969fb 100644 --- a/stock_location_tag/README.rst +++ b/stock_location_tag/README.rst @@ -46,7 +46,6 @@ Authors ------- * NuoBiT Solutions SL -* Eric Antones Contributors ------------ @@ -55,6 +54,7 @@ Contributors - Eric Antones eantones@nuobit.com - Bijaya Kumal bkumal@nuobit.com + - Deniz Gallo dgallo@nuobit.com Maintainers ----------- diff --git a/stock_location_tag/__init__.py b/stock_location_tag/__init__.py index 21101d349..0650744f6 100644 --- a/stock_location_tag/__init__.py +++ b/stock_location_tag/__init__.py @@ -1,3 +1 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) - from . import models diff --git a/stock_location_tag/__manifest__.py b/stock_location_tag/__manifest__.py index f1ef4f7e7..c61290424 100644 --- a/stock_location_tag/__manifest__.py +++ b/stock_location_tag/__manifest__.py @@ -1,13 +1,14 @@ -# Copyright NuoBiT - Eric Antones -# Copyright NuoBiT 2025 - Bijaya Kumal +# Copyright NuoBiT Solutions SL - Eric Antones +# Copyright NuoBiT Solutions SL 2025 - Bijaya Kumal +# Copyright NuoBiT Solutions SL 2025 - Deniz Gallo # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) { "name": "Stock location tag", "summary": "This module adds tags on location", - "author": "NuoBiT Solutions SL, Eric Antones", + "author": "NuoBiT Solutions SL", "category": "Warehouse", - "version": "16.0.1.0.0", + "version": "18.0.1.0.0", "license": "AGPL-3", "website": "https://github.com/NuoBiT/odoo-addons", "depends": [ @@ -19,5 +20,4 @@ "views/stock_location_views.xml", "views/stock_location_tag_views.xml", ], - "installable": True, } diff --git a/stock_location_tag/i18n/es.po b/stock_location_tag/i18n/es.po new file mode 100644 index 000000000..674b07af0 --- /dev/null +++ b/stock_location_tag/i18n/es.po @@ -0,0 +1,83 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_location_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-09-22 07:38+0000\n" +"PO-Revision-Date: 2025-09-22 07:38+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: stock_location_tag +#: model:ir.model.fields,field_description:stock_location_tag.field_stock_location_tag__color +msgid "Color Index" +msgstr "Indice de color" + +#. module: stock_location_tag +#: model:ir.model.fields,field_description:stock_location_tag.field_stock_location_tag__company_id +msgid "Company" +msgstr "Compañía" + +#. module: stock_location_tag +#: model:ir.model.fields,field_description:stock_location_tag.field_stock_location_tag__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: stock_location_tag +#: model:ir.model.fields,field_description:stock_location_tag.field_stock_location_tag__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: stock_location_tag +#: model:ir.model.fields,field_description:stock_location_tag.field_stock_location_tag__display_name +msgid "Display Name" +msgstr "Nombre para mostrar" + +#. module: stock_location_tag +#: model:ir.model.fields,field_description:stock_location_tag.field_stock_location_tag__id +msgid "ID" +msgstr "ID" + +#. module: stock_location_tag +#: model:ir.model,name:stock_location_tag.model_stock_location +msgid "Inventory Locations" +msgstr "Ubicaciones de inventario" + +#. module: stock_location_tag +#: model:ir.model.fields,field_description:stock_location_tag.field_stock_location_tag__write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: stock_location_tag +#: model:ir.model.fields,field_description:stock_location_tag.field_stock_location_tag__write_date +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: stock_location_tag +#: model:ir.actions.act_window,name:stock_location_tag.stock_location_tag_action +#: model:ir.model,name:stock_location_tag.model_stock_location_tag +#: model:ir.ui.menu,name:stock_location_tag.stock_location_tag_menu +msgid "Location Tags" +msgstr "Etiquetas de ubicación" + +#. module: stock_location_tag +#: model:ir.model.fields,field_description:stock_location_tag.field_stock_location_tag__name +msgid "Name" +msgstr "Nombre" + +#. module: stock_location_tag +#: model:ir.model.constraint,message:stock_location_tag.constraint_stock_location_tag_name_company_uniq +msgid "Tag name already exists. It must be unique per company!" +msgstr "¡El nombre de la etiqueta ya existe. ¡Debe ser único por compañía!" + +#. module: stock_location_tag +#: model:ir.model.fields,field_description:stock_location_tag.field_stock_location__tag_ids +msgid "Tags" +msgstr "Etiquetas" diff --git a/stock_location_tag/models/stock_location.py b/stock_location_tag/models/stock_location.py index 1a27b7344..e7b7842f4 100644 --- a/stock_location_tag/models/stock_location.py +++ b/stock_location_tag/models/stock_location.py @@ -1,4 +1,4 @@ -# Copyright NuoBiT - Eric Antones +# Copyright NuoBiT Solutions SL - Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models diff --git a/stock_location_tag/models/stock_location_tag.py b/stock_location_tag/models/stock_location_tag.py index 3e01bd1b1..41f1bdf74 100644 --- a/stock_location_tag/models/stock_location_tag.py +++ b/stock_location_tag/models/stock_location_tag.py @@ -1,4 +1,4 @@ -# Copyright NuoBiT - Eric Antones +# Copyright NuoBiT Solutions SL - Eric Antones # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models diff --git a/stock_location_tag/readme/CONTRIBUTORS.md b/stock_location_tag/readme/CONTRIBUTORS.md index 09afb8b5c..325bee193 100644 --- a/stock_location_tag/readme/CONTRIBUTORS.md +++ b/stock_location_tag/readme/CONTRIBUTORS.md @@ -1,3 +1,4 @@ - [NuoBiT](https://www.nuobit.com): - Eric Antones - Bijaya Kumal + - Deniz Gallo diff --git a/stock_location_tag/security/stock_location_tag_security.xml b/stock_location_tag/security/stock_location_tag_security.xml index 069e15ffc..9dd5e1c08 100644 --- a/stock_location_tag/security/stock_location_tag_security.xml +++ b/stock_location_tag/security/stock_location_tag_security.xml @@ -1,5 +1,5 @@ - diff --git a/stock_location_tag/static/description/index.html b/stock_location_tag/static/description/index.html index 5b2a28e48..c378c31ae 100644 --- a/stock_location_tag/static/description/index.html +++ b/stock_location_tag/static/description/index.html @@ -397,7 +397,6 @@

Credits

Authors

  • NuoBiT Solutions SL
  • -
  • Eric Antones
@@ -406,6 +405,7 @@

Contributors

  • NuoBiT:
  • diff --git a/stock_location_tag/views/stock_location_tag_views.xml b/stock_location_tag/views/stock_location_tag_views.xml index b1b934c03..dcffa4cb1 100644 --- a/stock_location_tag/views/stock_location_tag_views.xml +++ b/stock_location_tag/views/stock_location_tag_views.xml @@ -1,15 +1,15 @@ - stock.location.tag.view.tree stock.location.tag - + - + @@ -33,7 +33,7 @@ Location Tags stock.location.tag - tree,form + list,form - @@ -7,7 +8,7 @@ stock.location - +