From 9a8d9616b7fdc779f6a000dd3e48979e9f004063 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 18 Jan 2018 18:08:54 +0100 Subject: [PATCH] Port module stock_my_operations_filter to v10 --- stock_my_operations_filter/__manifest__.py | 26 ++++------------------ stock_my_operations_filter/stock.py | 25 ++++----------------- stock_my_operations_filter/stock_view.xml | 19 ++++++++-------- stock_my_operations_filter/users_view.xml | 16 ++++++------- 4 files changed, 24 insertions(+), 62 deletions(-) diff --git a/stock_my_operations_filter/__manifest__.py b/stock_my_operations_filter/__manifest__.py index 3e38cb5..571149e 100644 --- a/stock_my_operations_filter/__manifest__.py +++ b/stock_my_operations_filter/__manifest__.py @@ -1,29 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Stock My Operations Filter module for Odoo -# Copyright (C) 2015 Akretion (http://www.akretion.com) -# @author Alexis de Lattre -# -# 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 . -# -############################################################################## +# © 2015-2018 Akretion (http://www.akretion.com) +# @author Alexis de Lattre { 'name': 'Stock My Operations Filter', - 'version': '8.0.0.1.0', + 'version': '10.0.0.1.0', 'category': 'Inventory, Logistic, Storage', 'license': 'AGPL-3', 'summary': "Adds a filter 'My Operations'", @@ -40,5 +22,5 @@ This module has been written by Alexis de Lattre from Akretion 'stock_view.xml', 'users_view.xml', ], - 'installable': False, + 'installable': True, } diff --git a/stock_my_operations_filter/stock.py b/stock_my_operations_filter/stock.py index ccb3138..28e8854 100644 --- a/stock_my_operations_filter/stock.py +++ b/stock_my_operations_filter/stock.py @@ -1,27 +1,10 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Stock My Operations Filter module for Odoo -# Copyright (C) 2015 Akretion (http://www.akretion.com) -# @author Alexis de Lattre -# -# 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 . -# -############################################################################## +# © 2015-2018 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import models, fields +from odoo import models, fields class ResUsers(models.Model): diff --git a/stock_my_operations_filter/stock_view.xml b/stock_my_operations_filter/stock_view.xml index bd75665..7cd1c91 100644 --- a/stock_my_operations_filter/stock_view.xml +++ b/stock_my_operations_filter/stock_view.xml @@ -1,12 +1,11 @@ - - + my.operations.stock.picking.type.form @@ -26,16 +25,16 @@ stock.picking.type - + + - + - + {'search_default_my_operations': True} - - + diff --git a/stock_my_operations_filter/users_view.xml b/stock_my_operations_filter/users_view.xml index 24d83e5..c5c4a86 100644 --- a/stock_my_operations_filter/users_view.xml +++ b/stock_my_operations_filter/users_view.xml @@ -1,23 +1,21 @@ - - + usability.default_warehouse.res.users.form res.users - + - + - - +