diff --git a/stock_location_simple/__init__.py b/stock_location_simple/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/stock_location_simple/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_location_simple/__manifest__.py b/stock_location_simple/__manifest__.py new file mode 100644 index 0000000..1d3a227 --- /dev/null +++ b/stock_location_simple/__manifest__.py @@ -0,0 +1,13 @@ +# Copyright 2024 Akretion +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Stock Location Simple", + "summary": "Simplified stock.location menu", + "version": "14.0.1.0.0", + "license": "AGPL-3", + "author": "Akretion", + "website": "http://akretion.com", + "depends": ["stock"], + "data": ["views/stock_location_views.xml"], +} diff --git a/stock_location_simple/models/__init__.py b/stock_location_simple/models/__init__.py new file mode 100644 index 0000000..88493e3 --- /dev/null +++ b/stock_location_simple/models/__init__.py @@ -0,0 +1 @@ +from . import stock_location diff --git a/stock_location_simple/models/stock_location.py b/stock_location_simple/models/stock_location.py new file mode 100644 index 0000000..6cfa2f2 --- /dev/null +++ b/stock_location_simple/models/stock_location.py @@ -0,0 +1,10 @@ +# Copyright 2024 Akretion +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import _, api, fields, models + + +class StockLocation(models.Model): + _inherit = "stock.location" + + # TODO diff --git a/stock_location_simple/views/stock_location_views.xml b/stock_location_simple/views/stock_location_views.xml new file mode 100644 index 0000000..12c1f10 --- /dev/null +++ b/stock_location_simple/views/stock_location_views.xml @@ -0,0 +1,90 @@ + + + + + + + stock.location.simple.form + stock.location + +
+ +
+
+ +
+
+
+
+ + + stock.location.simple.tree + stock.location + + + + + + + + + + + + Stock Location + stock.location + tree,form + [("usage", "=", "internal")] + + + + + tree + + + + + + + form + + + + + + Locations + + + + + + + + + Locations Technical + + + + + + +