From 96182072da87b7692781ad711d8af9693e875b32 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Carreras Date: Mon, 25 Nov 2024 15:32:23 -0300 Subject: [PATCH] [ADD]stock_move_order: new module X-original-commit: 5f727386bd5600c369b00bfafccd53fe5aa07d38 --- stock_move_order/README.rst | 70 +++++++++++++++++++++++++++ stock_move_order/__init__.py | 5 ++ stock_move_order/__manifest__.py | 41 ++++++++++++++++ stock_move_order/models/__init__.py | 5 ++ stock_move_order/models/stock_move.py | 11 +++++ 5 files changed, 132 insertions(+) create mode 100644 stock_move_order/README.rst create mode 100644 stock_move_order/__init__.py create mode 100644 stock_move_order/__manifest__.py create mode 100644 stock_move_order/models/__init__.py create mode 100644 stock_move_order/models/stock_move.py diff --git a/stock_move_order/README.rst b/stock_move_order/README.rst new file mode 100644 index 000000000..283d50d8d --- /dev/null +++ b/stock_move_order/README.rst @@ -0,0 +1,70 @@ +.. |company| replace:: ADHOC SA + +.. |company_logo| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-logo.png + :alt: ADHOC SA + :target: https://www.adhoc.com.ar + +.. |icon| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-icon.png + +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 + +=========== +Delivery Ux +=========== + +#. Change order of stock moves in SO/PO + +Installation +============ + +To install this module, you need to: + +#. Only need to install the module + +Configuration +============= + +To configure this module, you need to: + +#. Just select the partner in the carrier. + +Usage +===== + +To use this module, you need to: + +#. Just use it. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: http://runbot.adhoc.com.ar/ + +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 +======= + +Images +------ + +* |company| |icon| + +Contributors +------------ + +Maintainer +---------- + +|company_logo| + +This module is maintained by the |company|. + +To contribute to this module, please visit https://www.adhoc.com.ar. diff --git a/stock_move_order/__init__.py b/stock_move_order/__init__.py new file mode 100644 index 000000000..d03377692 --- /dev/null +++ b/stock_move_order/__init__.py @@ -0,0 +1,5 @@ +############################################################################## +# For copyright and license notices, see __manifest__.py file in module root +# directory +############################################################################## +from . import models diff --git a/stock_move_order/__manifest__.py b/stock_move_order/__manifest__.py new file mode 100644 index 000000000..cb52f04b0 --- /dev/null +++ b/stock_move_order/__manifest__.py @@ -0,0 +1,41 @@ +############################################################################## +# +# Copyright (C) 2015 ADHOC SA (http://www.adhoc.com.ar) +# All Rights Reserved. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + 'name': 'Stock Move Order', + 'version': "16.0.1.1.0", + 'category': 'Warehouse Management', + 'sequence': 14, + 'summary': '', + 'author': 'ADHOC SA', + 'website': 'www.adhoc.com.ar', + 'license': 'AGPL-3', + 'images': [ + ], + 'depends': [ + 'stock', + ], + 'data': [ + ], + 'demo': [ + ], + 'installable': False, + 'auto_install': False, + 'application': False, +} diff --git a/stock_move_order/models/__init__.py b/stock_move_order/models/__init__.py new file mode 100644 index 000000000..0c1dc32ba --- /dev/null +++ b/stock_move_order/models/__init__.py @@ -0,0 +1,5 @@ +############################################################################## +# For copyright and license notices, see __manifest__.py file in module root +# directory +############################################################################## +from . import stock_move diff --git a/stock_move_order/models/stock_move.py b/stock_move_order/models/stock_move.py new file mode 100644 index 000000000..7ee213ca1 --- /dev/null +++ b/stock_move_order/models/stock_move.py @@ -0,0 +1,11 @@ +############################################################################## +# For copyright and license notices, see __manifest__.py file in module root +# directory +############################################################################## +from odoo import models + + +class StockMove(models.Model): + _inherit = 'stock.move' + _order = "id" +# La unica funcionalidad de este modulo es cambiar el ordenamiento del las vistas embebidas de stock.move