diff --git a/product_editable_sequence/__init__.py b/product_editable_sequence/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/product_editable_sequence/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/product_editable_sequence/__manifest__.py b/product_editable_sequence/__manifest__.py new file mode 100644 index 00000000..1a3af965 --- /dev/null +++ b/product_editable_sequence/__manifest__.py @@ -0,0 +1,26 @@ +# Copyright 2024 Akretion (https://www.akretion.com). +# @author Sébastien BEAU +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Product Editable Sequence", + "summary": "Make s=the sequence mass editable with a default value of 100", + "version": "14.0.1.0.0", + "development_status": "Alpha", + "category": "Uncategorized", + "website": "www.akretion.com", + "author": " Akretion", + "license": "AGPL-3", + "external_dependencies": { + "python": [], + "bin": [], + }, + "depends": [ + "product", + ], + "data": [ + "views/product_template_views.xml", + ], + "demo": [ + ], +} diff --git a/product_editable_sequence/models/product_template.py b/product_editable_sequence/models/product_template.py new file mode 100644 index 00000000..c33fb770 --- /dev/null +++ b/product_editable_sequence/models/product_template.py @@ -0,0 +1,11 @@ +# Copyright 2024 Akretion (https://www.akretion.com). +# @author Sébastien BEAU +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import _, api, fields, models + + +class ProductTemplate(models.Model): + _inherit = 'product.template' + + sequence = fields.Integer(default=100) diff --git a/product_editable_sequence/views/product_template_views.xml b/product_editable_sequence/views/product_template_views.xml new file mode 100644 index 00000000..7c19c42d --- /dev/null +++ b/product_editable_sequence/views/product_template_views.xml @@ -0,0 +1,16 @@ + + + + + product.template + + + + + + + + + + +