From 3bd50e49eb302dbd3d593f7013f6633a42d5a537 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 18 Feb 2015 09:34:18 +0100 Subject: [PATCH] add mrp_usability --- mrp_usability/__init__.py | 23 +++++++++++++++++++ mrp_usability/__openerp__.py | 43 ++++++++++++++++++++++++++++++++++++ mrp_usability/mrp.py | 28 +++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 mrp_usability/__init__.py create mode 100644 mrp_usability/__openerp__.py create mode 100644 mrp_usability/mrp.py diff --git a/mrp_usability/__init__.py b/mrp_usability/__init__.py new file mode 100644 index 0000000..246b2eb --- /dev/null +++ b/mrp_usability/__init__.py @@ -0,0 +1,23 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# MRP Usability 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 . +# +############################################################################## + +from . import mrp diff --git a/mrp_usability/__openerp__.py b/mrp_usability/__openerp__.py new file mode 100644 index 0000000..e1524b3 --- /dev/null +++ b/mrp_usability/__openerp__.py @@ -0,0 +1,43 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# MRP Usability 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 . +# +############################################################################## + + +{ + 'name': 'MRP Usability', + 'version': '0.1', + 'category': 'Manufacturing', + 'license': 'AGPL-3', + 'summary': 'Usability improvements on manufacturing', + 'description': """ +MRP Usability +============= + +Small usability improvements on MRP. + +This module has been written by Alexis de Lattre from Akretion . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['mrp'], + 'data': [], + 'installable': True, +} diff --git a/mrp_usability/mrp.py b/mrp_usability/mrp.py new file mode 100644 index 0000000..1291653 --- /dev/null +++ b/mrp_usability/mrp.py @@ -0,0 +1,28 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# MRP Usability 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 . +# +############################################################################## + +from openerp import models + + +class MrpProduction(models.Model): + _inherit = 'mrp.production' + _order = 'id desc'