mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[MIG] base_repair: Migration to 13.0
This commit is contained in:
@@ -14,13 +14,13 @@ Base Repair
|
|||||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||||
:alt: License: AGPL-3
|
:alt: License: AGPL-3
|
||||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github
|
||||||
:target: https://github.com/OCA/manufacture/tree/12.0/base_repair
|
:target: https://github.com/OCA/manufacture/tree/13.0/base_repair
|
||||||
:alt: OCA/manufacture
|
:alt: OCA/manufacture
|
||||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
.. |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-base_repair
|
:target: https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-base_repair
|
||||||
:alt: Translate me on Weblate
|
:alt: Translate me on Weblate
|
||||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
.. |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
|
:alt: Try me on Runbot
|
||||||
|
|
||||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||||
@@ -47,7 +47,7 @@ Bug Tracker
|
|||||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/issues>`_.
|
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.
|
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
|
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||||
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20base_repair%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20base_repair%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||||
|
|
||||||
Do not contact contributors directly about support or help with technical issues.
|
Do not contact contributors directly about support or help with technical issues.
|
||||||
|
|
||||||
@@ -99,6 +99,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
|||||||
|
|
||||||
|maintainer-marcelsavegnago|
|
|maintainer-marcelsavegnago|
|
||||||
|
|
||||||
This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/12.0/base_repair>`_ project on GitHub.
|
This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/13.0/base_repair>`_ project on GitHub.
|
||||||
|
|
||||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||||
|
|||||||
@@ -2,22 +2,18 @@
|
|||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Base Repair',
|
"name": "Base Repair",
|
||||||
'summary': """
|
"summary": """
|
||||||
This module extends the functionality of Odoo Repair module
|
This module extends the functionality of Odoo Repair module
|
||||||
to add some basic features.""",
|
to add some basic features.""",
|
||||||
'version': '12.0.1.0.0',
|
"version": "13.0.1.0.0",
|
||||||
'license': 'AGPL-3',
|
"license": "AGPL-3",
|
||||||
'author': 'Escodoo, Agile Business Group, Odoo Community Association (OCA)',
|
"author": "Escodoo, Agile Business Group, Odoo Community Association (OCA)",
|
||||||
'maintainers': ['marcelsavegnago'],
|
"maintainers": ["marcelsavegnago"],
|
||||||
'images': ['static/description/banner.png'],
|
"images": ["static/description/banner.png"],
|
||||||
'website': 'https://github.com/oca/manufacture',
|
"website": "https://github.com/oca/manufacture",
|
||||||
'category': 'Manufacturing',
|
"category": "Manufacturing",
|
||||||
'depends': [
|
"depends": ["repair"],
|
||||||
'repair',
|
"data": ["views/repair_order.xml"],
|
||||||
],
|
"installable": True,
|
||||||
'data': [
|
|
||||||
'views/repair_order.xml',
|
|
||||||
],
|
|
||||||
'installable': True,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 12.0\n"
|
"Project-Id-Version: Odoo Server 13.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 12.0\n"
|
"Project-Id-Version: Odoo Server 13.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-02-03 07:04+0000\n"
|
"POT-Creation-Date: 2021-02-03 07:04+0000\n"
|
||||||
"PO-Revision-Date: 2021-02-03 04:04-0300\n"
|
"PO-Revision-Date: 2021-02-03 04:04-0300\n"
|
||||||
|
|||||||
@@ -6,19 +6,20 @@ from odoo import fields, models
|
|||||||
|
|
||||||
class RepairOrder(models.Model):
|
class RepairOrder(models.Model):
|
||||||
|
|
||||||
_inherit = 'repair.order'
|
_inherit = "repair.order"
|
||||||
|
|
||||||
user_id = fields.Many2one(
|
user_id = fields.Many2one(
|
||||||
'res.users', 'User',
|
"res.users",
|
||||||
|
"User",
|
||||||
default=lambda self: self.env.user,
|
default=lambda self: self.env.user,
|
||||||
help="Person in charge for the repair")
|
help="Person in charge for the repair",
|
||||||
|
)
|
||||||
|
|
||||||
date_repair = fields.Datetime(
|
date_repair = fields.Datetime(
|
||||||
'Repair Date', default=fields.Datetime.now,
|
"Repair Date",
|
||||||
|
default=fields.Datetime.now,
|
||||||
copy=False,
|
copy=False,
|
||||||
help="Date of the repair, this field "
|
help="Date of the repair, this field " "and user_id defines the calendar",
|
||||||
"and user_id defines the calendar")
|
)
|
||||||
|
|
||||||
duration = fields.Float(
|
duration = fields.Float("Repair Duration", help="Duration in hours and minutes.")
|
||||||
'Repair Duration',
|
|
||||||
help="Duration in hours and minutes.")
|
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
|
||||||
<title>Base Repair</title>
|
<title>Base Repair</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
/*
|
/*
|
||||||
:Author: David Goodger (goodger@python.org)
|
:Author: David Goodger (goodger@python.org)
|
||||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
|
:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $
|
||||||
:Copyright: This stylesheet has been placed in the public domain.
|
:Copyright: This stylesheet has been placed in the public domain.
|
||||||
|
|
||||||
Default cascading style sheet for the HTML output of Docutils.
|
Default cascading style sheet for the HTML output of Docutils.
|
||||||
@@ -37,14 +37,6 @@ table.borderless td, table.borderless th {
|
|||||||
.hidden {
|
.hidden {
|
||||||
display: none }
|
display: none }
|
||||||
|
|
||||||
.subscript {
|
|
||||||
vertical-align: sub;
|
|
||||||
font-size: smaller }
|
|
||||||
|
|
||||||
.superscript {
|
|
||||||
vertical-align: super;
|
|
||||||
font-size: smaller }
|
|
||||||
|
|
||||||
a.toc-backref {
|
a.toc-backref {
|
||||||
text-decoration: none ;
|
text-decoration: none ;
|
||||||
color: black }
|
color: black }
|
||||||
@@ -169,12 +161,12 @@ h2.subtitle {
|
|||||||
hr.docutils {
|
hr.docutils {
|
||||||
width: 75% }
|
width: 75% }
|
||||||
|
|
||||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
img.align-left, .figure.align-left, object.align-left {
|
||||||
clear: left ;
|
clear: left ;
|
||||||
float: left ;
|
float: left ;
|
||||||
margin-right: 1em }
|
margin-right: 1em }
|
||||||
|
|
||||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
img.align-right, .figure.align-right, object.align-right {
|
||||||
clear: right ;
|
clear: right ;
|
||||||
float: right ;
|
float: right ;
|
||||||
margin-left: 1em }
|
margin-left: 1em }
|
||||||
@@ -185,11 +177,6 @@ img.align-center, .figure.align-center, object.align-center {
|
|||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.align-center {
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.align-left {
|
.align-left {
|
||||||
text-align: left }
|
text-align: left }
|
||||||
|
|
||||||
@@ -207,15 +194,6 @@ div.align-right {
|
|||||||
/* div.align-center * { */
|
/* div.align-center * { */
|
||||||
/* text-align: left } */
|
/* text-align: left } */
|
||||||
|
|
||||||
.align-top {
|
|
||||||
vertical-align: top }
|
|
||||||
|
|
||||||
.align-middle {
|
|
||||||
vertical-align: middle }
|
|
||||||
|
|
||||||
.align-bottom {
|
|
||||||
vertical-align: bottom }
|
|
||||||
|
|
||||||
ol.simple, ul.simple {
|
ol.simple, ul.simple {
|
||||||
margin-bottom: 1em }
|
margin-bottom: 1em }
|
||||||
|
|
||||||
@@ -367,7 +345,7 @@ ul.auto-toc {
|
|||||||
!! This file is generated by oca-gen-addon-readme !!
|
!! This file is generated by oca-gen-addon-readme !!
|
||||||
!! changes will be overwritten. !!
|
!! changes will be overwritten. !!
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/manufacture/tree/12.0/base_repair"><img alt="OCA/manufacture" src="https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-base_repair"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/129/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/manufacture/tree/13.0/base_repair"><img alt="OCA/manufacture" src="https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-base_repair"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/129/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||||
<p>This module extends the functionality of Odoo Repair module to add some basic features that are standard in other Odoo apps:</p>
|
<p>This module extends the functionality of Odoo Repair module to add some basic features that are standard in other Odoo apps:</p>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li>Includes Repair Date field and adds it to the form</li>
|
<li>Includes Repair Date field and adds it to the form</li>
|
||||||
@@ -397,7 +375,7 @@ ul.auto-toc {
|
|||||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/manufacture/issues">GitHub Issues</a>.
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/manufacture/issues">GitHub Issues</a>.
|
||||||
In case of trouble, please check there if your issue has already been reported.
|
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
|
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||||
<a class="reference external" href="https://github.com/OCA/manufacture/issues/new?body=module:%20base_repair%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
<a class="reference external" href="https://github.com/OCA/manufacture/issues/new?body=module:%20base_repair%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="credits">
|
<div class="section" id="credits">
|
||||||
@@ -437,7 +415,7 @@ mission is to support the collaborative development of Odoo features and
|
|||||||
promote its widespread use.</p>
|
promote its widespread use.</p>
|
||||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||||
<p><a class="reference external" href="https://github.com/marcelsavegnago"><img alt="marcelsavegnago" src="https://github.com/marcelsavegnago.png?size=40px" /></a></p>
|
<p><a class="reference external" href="https://github.com/marcelsavegnago"><img alt="marcelsavegnago" src="https://github.com/marcelsavegnago.png?size=40px" /></a></p>
|
||||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/manufacture/tree/12.0/base_repair">OCA/manufacture</a> project on GitHub.</p>
|
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/manufacture/tree/13.0/base_repair">OCA/manufacture</a> project on GitHub.</p>
|
||||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<!-- Copyright 2021 - TODAY, Escodoo
|
<!-- Copyright 2021 - TODAY, Escodoo
|
||||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
|
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
|
||||||
|
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<record id="view_repair_order_calendar_form" model="ir.ui.view">
|
<record id="view_repair_order_calendar_form" model="ir.ui.view">
|
||||||
<field name="name">repair.calendar.form (in base_repair)</field>
|
<field name="name">repair.calendar.form (in base_repair)</field>
|
||||||
<field name="model">repair.order</field>
|
<field name="model">repair.order</field>
|
||||||
@@ -18,7 +16,6 @@
|
|||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="view_repair_order_search" model="ir.ui.view">
|
<record id="view_repair_order_search" model="ir.ui.view">
|
||||||
<field name="name">repair.order.search (in base_repair)</field>
|
<field name="name">repair.order.search (in base_repair)</field>
|
||||||
<field name="model">repair.order</field>
|
<field name="model">repair.order</field>
|
||||||
@@ -27,45 +24,36 @@
|
|||||||
<field name="partner_id" position="after">
|
<field name="partner_id" position="after">
|
||||||
<field string="Responsible User" name="user_id" />
|
<field string="Responsible User" name="user_id" />
|
||||||
</field>
|
</field>
|
||||||
|
<filter name="guarantee_limit" position="after">
|
||||||
<filter name="guarantee_limit" domain="[]" context="{'group_by':'guarantee_limit'}" position="after">
|
<filter
|
||||||
<filter name="user_id"
|
name="user_id"
|
||||||
string="Responsible User"
|
string="Responsible User"
|
||||||
context="{'group_by': 'user_id'}"/>
|
context="{'group_by': 'user_id'}"
|
||||||
<filter name="date_repair"
|
/>
|
||||||
|
<filter
|
||||||
|
name="date_repair"
|
||||||
string="Repair Date"
|
string="Repair Date"
|
||||||
context="{'group_by': 'date_repair'}"/>
|
context="{'group_by': 'date_repair'}"
|
||||||
|
/>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="view_repair_order_pivot" model="ir.ui.view">
|
|
||||||
<field name="name">repair.order.pivot (in base_repair)</field>
|
|
||||||
<field name="model">repair.order</field>
|
|
||||||
<field name="type">pivot</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<pivot string="Repair Orders" display_quantity="true">
|
|
||||||
<field name="state" type="row"/>
|
|
||||||
<field name="partner_id" type="row"/>
|
|
||||||
<field name="duration" type="col"/>
|
|
||||||
</pivot>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="view_repair_order_calendar" model="ir.ui.view">
|
<record id="view_repair_order_calendar" model="ir.ui.view">
|
||||||
<field name="name">repair.order.calendar (in base_repair)</field>
|
<field name="name">repair.order.calendar (in base_repair)</field>
|
||||||
<field name="model">repair.order</field>
|
<field name="model">repair.order</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<calendar string="Repair Orders Calendar" date_start="date_repair" date_delay="duration" color="user_id">
|
<calendar
|
||||||
|
string="Repair Orders Calendar"
|
||||||
|
date_start="date_repair"
|
||||||
|
date_delay="duration"
|
||||||
|
color="user_id"
|
||||||
|
>
|
||||||
<field name="product_id" />
|
<field name="product_id" />
|
||||||
<field name="partner_id" />
|
<field name="partner_id" />
|
||||||
</calendar>
|
</calendar>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="repair.action_repair_order_tree" model="ir.actions.act_window">
|
<record id="repair.action_repair_order_tree" model="ir.actions.act_window">
|
||||||
<field name="view_mode">tree,kanban,pivot,calendar,form</field>
|
<field name="view_mode">tree,kanban,graph,pivot,calendar,form</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user