diff --git a/mrp_usability/__init__.py b/mrp_usability/__init__.py new file mode 100644 index 0000000..b02d6f4 --- /dev/null +++ b/mrp_usability/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import mrp diff --git a/mrp_usability/__openerp__.py b/mrp_usability/__openerp__.py new file mode 100644 index 0000000..1b8365f --- /dev/null +++ b/mrp_usability/__openerp__.py @@ -0,0 +1,47 @@ +# -*- coding: 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: + +* order by id desc + +* show date start and date finished on production order form view + +This module has been written by Alexis de Lattre from Akretion . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['mrp'], + 'data': ['mrp_view.xml'], + 'installable': True, +} diff --git a/mrp_usability/mrp.py b/mrp_usability/mrp.py new file mode 100644 index 0000000..8dcf261 --- /dev/null +++ b/mrp_usability/mrp.py @@ -0,0 +1,28 @@ +# -*- coding: 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.osv import orm + + +class MrpProduction(orm.Model): + _inherit = 'mrp.production' + _order = 'id desc' diff --git a/mrp_usability/mrp_view.xml b/mrp_usability/mrp_view.xml new file mode 100644 index 0000000..30d2703 --- /dev/null +++ b/mrp_usability/mrp_view.xml @@ -0,0 +1,26 @@ + + + + + + + + usability.mrp.production.form + mrp.production + + + + 0 + + + 0 + + + + + +