mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[MIGR] mrp_calendar_view: migrate it to v10.0 and rename it to mrp_repair_calendar_view
This commit is contained in:
@@ -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 <nicola.malcontenti@agilebg.com>
|
||||
* 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.
|
||||
@@ -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 <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
#########################################################################
|
||||
|
||||
from . import model
|
||||
@@ -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 <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
#########################################################################
|
||||
|
||||
|
||||
{
|
||||
'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,
|
||||
}
|
||||
@@ -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 <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
#########################################################################
|
||||
|
||||
from . import mrp_repair
|
||||
@@ -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 <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
#########################################################################
|
||||
|
||||
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")
|
||||
56
mrp_repair_calendar_view/README.rst
Normal file
56
mrp_repair_calendar_view/README.rst
Normal file
@@ -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
|
||||
<https://github.com/OCA/manufacture/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 <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Nicola Malcontenti <nicola.malcontenti@agilebg.com>
|
||||
* Alessio Gerace <alessio.gerace@agilebg.com>
|
||||
* Alex Comba <alex.comba@agilebg.com>
|
||||
|
||||
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.
|
||||
6
mrp_repair_calendar_view/__init__.py
Normal file
6
mrp_repair_calendar_view/__init__.py
Normal file
@@ -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
|
||||
16
mrp_repair_calendar_view/__manifest__.py
Normal file
16
mrp_repair_calendar_view/__manifest__.py
Normal file
@@ -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,
|
||||
}
|
||||
47
mrp_repair_calendar_view/i18n/it.po
Normal file
47
mrp_repair_calendar_view/i18n/it.po
Normal file
@@ -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"
|
||||
|
||||
6
mrp_repair_calendar_view/models/__init__.py
Normal file
6
mrp_repair_calendar_view/models/__init__.py
Normal file
@@ -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
|
||||
17
mrp_repair_calendar_view/models/mrp_repair.py
Normal file
17
mrp_repair_calendar_view/models/mrp_repair.py
Normal file
@@ -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")
|
||||
BIN
mrp_repair_calendar_view/static/description/icon.png
Normal file
BIN
mrp_repair_calendar_view/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
@@ -1,7 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<odoo>
|
||||
<record id="view_repair_order_calendar_form" model="ir.ui.view">
|
||||
<field name="name">mrp.repair.calendar.form</field>
|
||||
<field name="model">mrp.repair</field>
|
||||
@@ -31,5 +29,4 @@
|
||||
<field name="view_mode">calendar,tree,form</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user