diff --git a/mrp_calendar_view/README.rst b/mrp_calendar_view/README.rst deleted file mode 100644 index 1b5025644..000000000 --- a/mrp_calendar_view/README.rst +++ /dev/null @@ -1,29 +0,0 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License - -MRP Calendar View -================= - -This Module adds a calendar view for the repair orders - -Credits -======= - -Contributors ------------- - -* Nicola Malcontenti -* Odoo Community Association - -Maintainer ----------- - -.. image:: http://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: http://odoo-community.org - -This module is maintained by the OCA. - -OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. - -To contribute to this module, please visit http://odoo-community.org. diff --git a/mrp_calendar_view/__init__.py b/mrp_calendar_view/__init__.py deleted file mode 100644 index 7832e0626..000000000 --- a/mrp_calendar_view/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -######################################################################### -# # -# Copyright (C) 2015 Agile Business Group # -# # -# 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 Licensefor more details. # -# # -# You should have received a copy of the # -# GNU Affero General Public License # -# along with this program. If not, see . # -# # -######################################################################### - -from . import model diff --git a/mrp_calendar_view/__manifest__.py b/mrp_calendar_view/__manifest__.py deleted file mode 100644 index c60d5736c..000000000 --- a/mrp_calendar_view/__manifest__.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -######################################################################### -# # -# Copyright (C) 2015 Agile Business Group # -# # -# 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 Licensefor more details. # -# # -# You should have received a copy of the # -# GNU Affero General Public License # -# along with this program. If not, see . # -# # -######################################################################### - - -{ - 'name': 'MRP Calendar View', - 'version': '8.0.1.0.0', - 'category': 'Manufacturing', - 'author': "Agile Business Group, Odoo Community Association (OCA)", - 'website': 'http://www.agilebg.com', - 'license': 'AGPL-3', - 'depends': ['mrp_repair'], - 'data': ['view/mrp_repair_view.xml'], - 'installable': False, -} diff --git a/mrp_calendar_view/model/__init__.py b/mrp_calendar_view/model/__init__.py deleted file mode 100644 index 7850985d6..000000000 --- a/mrp_calendar_view/model/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -######################################################################### -# # -# Copyright (C) 2015 Agile Business Group # -# # -# 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 Licensefor 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_repair diff --git a/mrp_calendar_view/model/mrp_repair.py b/mrp_calendar_view/model/mrp_repair.py deleted file mode 100644 index 728a7d69b..000000000 --- a/mrp_calendar_view/model/mrp_repair.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -######################################################################### -# # -# Copyright (C) 2015 Agile Business Group # -# # -# 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 Licensefor 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 fields, models - - -class mrp_repair(models.Model): - _inherit = 'mrp.repair' - - user_id = fields.Many2one('res.users', 'User', - default=lambda self: self.env.user, - help="Person in charge for the repair") - date_repair = fields.Datetime('Repair Date', default=fields.Datetime.now, - help="Date of the repair, this field" - "and user_id defines the calendar") diff --git a/mrp_repair_calendar_view/README.rst b/mrp_repair_calendar_view/README.rst new file mode 100644 index 000000000..2cdb3ae93 --- /dev/null +++ b/mrp_repair_calendar_view/README.rst @@ -0,0 +1,56 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +================= +MRP Calendar View +================= + +This Module adds a calendar view for the repair orders + +Usage +===== + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/129/10.0 + + +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 +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Nicola Malcontenti +* Alessio Gerace +* Alex Comba + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/mrp_repair_calendar_view/__init__.py b/mrp_repair_calendar_view/__init__.py new file mode 100644 index 000000000..1821b76a9 --- /dev/null +++ b/mrp_repair_calendar_view/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Agile Business Group +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + + +from . import models diff --git a/mrp_repair_calendar_view/__manifest__.py b/mrp_repair_calendar_view/__manifest__.py new file mode 100644 index 000000000..a10475a43 --- /dev/null +++ b/mrp_repair_calendar_view/__manifest__.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Agile Business Group +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + + +{ + 'name': 'MRP Repair Calendar View', + 'version': '10.0.1.0.0', + 'category': 'Manufacturing', + 'author': "Agile Business Group, Odoo Community Association (OCA)", + 'website': 'http://www.agilebg.com', + 'license': 'LGPL-3', + 'depends': ['mrp_repair'], + 'data': ['views/mrp_repair_view.xml'], + 'installable': True, +} diff --git a/mrp_repair_calendar_view/i18n/it.po b/mrp_repair_calendar_view/i18n/it.po new file mode 100644 index 000000000..03dcfb1bc --- /dev/null +++ b/mrp_repair_calendar_view/i18n/it.po @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_repair_calendar_view +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-04-07 08:27+0000\n" +"PO-Revision-Date: 2017-04-07 08:27+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mrp_repair_calendar_view +#: model:ir.model.fields,help:mrp_repair_calendar_view.field_mrp_repair_date_repair +msgid "Date of the repair, this field and user_id defines the calendar" +msgstr "Data della riparazione, questo campo e user_id definiscono il calendario" + +#. module: mrp_repair_calendar_view +#: model:ir.model.fields,help:mrp_repair_calendar_view.field_mrp_repair_user_id +msgid "Person in charge for the repair" +msgstr "Persona responsabile della riparazione" + +#. module: mrp_repair_calendar_view +#: model:ir.model.fields,field_description:mrp_repair_calendar_view.field_mrp_repair_date_repair +msgid "Repair Date" +msgstr "Data riparazione" + +#. module: mrp_repair_calendar_view +#: model:ir.model,name:mrp_repair_calendar_view.model_mrp_repair +msgid "Repair Order" +msgstr "Ordine di riparazione" + +#. module: mrp_repair_calendar_view +#: model:ir.ui.view,arch_db:mrp_repair_calendar_view.view_repair_order_calendar +msgid "Repair Orders Calendar" +msgstr "Calendario ordini di riparazione" + +#. module: mrp_repair_calendar_view +#: model:ir.model.fields,field_description:mrp_repair_calendar_view.field_mrp_repair_user_id +msgid "Responsible" +msgstr "Responsabile" + diff --git a/mrp_repair_calendar_view/models/__init__.py b/mrp_repair_calendar_view/models/__init__.py new file mode 100644 index 000000000..bef547b33 --- /dev/null +++ b/mrp_repair_calendar_view/models/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Agile Business Group +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + + +from . import mrp_repair diff --git a/mrp_repair_calendar_view/models/mrp_repair.py b/mrp_repair_calendar_view/models/mrp_repair.py new file mode 100644 index 000000000..3ee25f06b --- /dev/null +++ b/mrp_repair_calendar_view/models/mrp_repair.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Agile Business Group +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +from odoo import fields, models + + +class mrp_repair(models.Model): + _inherit = 'mrp.repair' + + user_id = fields.Many2one('res.users', 'User', + default=lambda self: self.env.user, + help="Person in charge for the repair") + date_repair = fields.Datetime('Repair Date', default=fields.Datetime.now, + copy=False, + help="Date of the repair, this field " + "and user_id defines the calendar") diff --git a/mrp_repair_calendar_view/static/description/icon.png b/mrp_repair_calendar_view/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/mrp_repair_calendar_view/static/description/icon.png differ diff --git a/mrp_calendar_view/view/mrp_repair_view.xml b/mrp_repair_calendar_view/views/mrp_repair_view.xml similarity index 96% rename from mrp_calendar_view/view/mrp_repair_view.xml rename to mrp_repair_calendar_view/views/mrp_repair_view.xml index dad94cb69..cb3c740cf 100644 --- a/mrp_calendar_view/view/mrp_repair_view.xml +++ b/mrp_repair_calendar_view/views/mrp_repair_view.xml @@ -1,7 +1,5 @@ - - - + mrp.repair.calendar.form mrp.repair @@ -31,5 +29,4 @@ calendar,tree,form - - +