From a79740fbb8b7a5a0fa70fb259ad3eaef11979885 Mon Sep 17 00:00:00 2001 From: ps-tubtim Date: Thu, 26 Mar 2020 14:25:38 +0700 Subject: [PATCH] [MIG] repair_calendar_view: Migration to 13.0 --- repair_calendar_view/README.rst | 21 +++++---------- repair_calendar_view/__manifest__.py | 2 +- repair_calendar_view/models/repair.py | 8 +----- repair_calendar_view/readme/CONTRIBUTORS.rst | 1 + repair_calendar_view/readme/CREDITS.rst | 4 --- repair_calendar_view/readme/DESCRIPTION.rst | 2 +- repair_calendar_view/readme/USAGE.rst | 0 .../static/description/index.html | 26 +++++-------------- .../views/mrp_repair_view.xml | 5 +--- .../odoo/addons/repair_calendar_view | 1 + setup/repair_calendar_view/setup.py | 6 +++++ 11 files changed, 26 insertions(+), 50 deletions(-) delete mode 100644 repair_calendar_view/readme/CREDITS.rst delete mode 100644 repair_calendar_view/readme/USAGE.rst create mode 120000 setup/repair_calendar_view/odoo/addons/repair_calendar_view create mode 100644 setup/repair_calendar_view/setup.py diff --git a/repair_calendar_view/README.rst b/repair_calendar_view/README.rst index 1a1abe4a9..16c30aa16 100644 --- a/repair_calendar_view/README.rst +++ b/repair_calendar_view/README.rst @@ -14,18 +14,18 @@ Repair Calendar View :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github - :target: https://github.com/OCA/manufacture/tree/12.0/repair_calendar_view + :target: https://github.com/OCA/manufacture/tree/13.0/repair_calendar_view :alt: OCA/manufacture .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-repair_calendar_view + :target: https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-repair_calendar_view :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/129/12.0 + :target: https://runbot.odoo-community.org/runbot/129/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| -This Module adds a calendar view for the repair orders +This Module adds a calendar view for the repair orders. **Table of contents** @@ -38,7 +38,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -58,14 +58,7 @@ Contributors * Alex Comba * Carlos Jimeno * María Asunción Daza - -Other credits -~~~~~~~~~~~~~ - -Images ------- - -* Odoo Community Association: `Icon `_. +* Pimolnat Suntian Maintainers ~~~~~~~~~~~ @@ -80,6 +73,6 @@ 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. -This module is part of the `OCA/manufacture `_ project on GitHub. +This module is part of the `OCA/manufacture `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/repair_calendar_view/__manifest__.py b/repair_calendar_view/__manifest__.py index 41d8ef0c6..7ffacf349 100644 --- a/repair_calendar_view/__manifest__.py +++ b/repair_calendar_view/__manifest__.py @@ -7,7 +7,7 @@ "version": "13.0.1.0.0", "category": "Manufacturing", "author": "Agile Business Group, Odoo Community Association (OCA)", - "website": "http://www.agilebg.com", + "website": "https://github.com/OCA/manufacture", "license": "LGPL-3", "depends": ["repair"], "data": ["views/mrp_repair_view.xml"], diff --git a/repair_calendar_view/models/repair.py b/repair_calendar_view/models/repair.py index 73d681cfc..0e50310c4 100644 --- a/repair_calendar_view/models/repair.py +++ b/repair_calendar_view/models/repair.py @@ -7,15 +7,9 @@ from odoo import fields, models class RepairOrder(models.Model): _inherit = "repair.order" - user_id = fields.Many2one( - comodel_name="res.users", - string="User", - default=lambda self: self.env.user, - help="Person in charge for the repair", - ) date_repair = fields.Datetime( string="Repair Date", default=fields.Datetime.now, copy=False, - help="Date of the repair, this field " "and user_id defines the calendar", + help="Date of the repair, this field and user_id defines the calendar", ) diff --git a/repair_calendar_view/readme/CONTRIBUTORS.rst b/repair_calendar_view/readme/CONTRIBUTORS.rst index 3d1e18274..dbc526777 100644 --- a/repair_calendar_view/readme/CONTRIBUTORS.rst +++ b/repair_calendar_view/readme/CONTRIBUTORS.rst @@ -3,3 +3,4 @@ * Alex Comba * Carlos Jimeno * María Asunción Daza +* Pimolnat Suntian diff --git a/repair_calendar_view/readme/CREDITS.rst b/repair_calendar_view/readme/CREDITS.rst deleted file mode 100644 index 9baa7efb9..000000000 --- a/repair_calendar_view/readme/CREDITS.rst +++ /dev/null @@ -1,4 +0,0 @@ -Images ------- - -* Odoo Community Association: `Icon `_. diff --git a/repair_calendar_view/readme/DESCRIPTION.rst b/repair_calendar_view/readme/DESCRIPTION.rst index b0cd92a7c..502b18f56 100644 --- a/repair_calendar_view/readme/DESCRIPTION.rst +++ b/repair_calendar_view/readme/DESCRIPTION.rst @@ -1 +1 @@ -This Module adds a calendar view for the repair orders +This Module adds a calendar view for the repair orders. diff --git a/repair_calendar_view/readme/USAGE.rst b/repair_calendar_view/readme/USAGE.rst deleted file mode 100644 index e69de29bb..000000000 diff --git a/repair_calendar_view/static/description/index.html b/repair_calendar_view/static/description/index.html index ae6105caf..d8af49151 100644 --- a/repair_calendar_view/static/description/index.html +++ b/repair_calendar_view/static/description/index.html @@ -367,8 +367,8 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/manufacture Translate me on Weblate Try me on Runbot

-

This Module adds a calendar view for the repair orders

+

Beta License: LGPL-3 OCA/manufacture Translate me on Weblate Try me on Runbot

+

This Module adds a calendar view for the repair orders.

Table of contents

@@ -390,7 +386,7 @@ ul.auto-toc {

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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -409,25 +405,17 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Alex Comba <alex.comba@agilebg.com>
  • Carlos Jimeno <carlos.jimeno@guadaltech.es>
  • María Asunción Daza <mariaasuncion.daza@guadaltech.es>
  • +
  • Pimolnat Suntian <pimolnats@ecosoft.co.th>
  • -
    -

    Other credits

    -
    -

    Images

    -
      -
    • Odoo Community Association: Icon.
    • -
    -
    -
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association

    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.

    -

    This module is part of the OCA/manufacture project on GitHub.

    +

    This module is part of the OCA/manufacture project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    diff --git a/repair_calendar_view/views/mrp_repair_view.xml b/repair_calendar_view/views/mrp_repair_view.xml index b73736745..9ca09b394 100644 --- a/repair_calendar_view/views/mrp_repair_view.xml +++ b/repair_calendar_view/views/mrp_repair_view.xml @@ -8,9 +8,6 @@ - - - @@ -28,6 +25,6 @@ - tree,kanban,calendar,form + tree,kanban,graph,pivot,calendar,form diff --git a/setup/repair_calendar_view/odoo/addons/repair_calendar_view b/setup/repair_calendar_view/odoo/addons/repair_calendar_view new file mode 120000 index 000000000..879f004ff --- /dev/null +++ b/setup/repair_calendar_view/odoo/addons/repair_calendar_view @@ -0,0 +1 @@ +../../../../repair_calendar_view \ No newline at end of file diff --git a/setup/repair_calendar_view/setup.py b/setup/repair_calendar_view/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/repair_calendar_view/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)