Skip to content

Commit

Permalink
[MIGR] mrp_calendar_view: migrate it to v10.0 and rename it to mrp_re…
Browse files Browse the repository at this point in the history
…pair_calendar_view
  • Loading branch information
archetipo authored and tafaRU committed Apr 26, 2017
1 parent 7d9e954 commit 9085945
Show file tree
Hide file tree
Showing 13 changed files with 150 additions and 144 deletions.
29 changes: 0 additions & 29 deletions mrp_calendar_view/README.rst

This file was deleted.

22 changes: 0 additions & 22 deletions mrp_calendar_view/__init__.py

This file was deleted.

33 changes: 0 additions & 33 deletions mrp_calendar_view/__manifest__.py

This file was deleted.

22 changes: 0 additions & 22 deletions mrp_calendar_view/model/__init__.py

This file was deleted.

33 changes: 0 additions & 33 deletions mrp_calendar_view/model/mrp_repair.py

This file was deleted.

56 changes: 56 additions & 0 deletions 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
<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 changes: 6 additions & 0 deletions 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
16 changes: 16 additions & 0 deletions 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,
}
47 changes: 47 additions & 0 deletions 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"

6 changes: 6 additions & 0 deletions 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
17 changes: 17 additions & 0 deletions 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")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -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>
Expand Down Expand Up @@ -31,5 +29,4 @@
<field name="view_mode">calendar,tree,form</field>
</record>

</data>
</openerp>
</odoo>

0 comments on commit 9085945

Please sign in to comment.