Merge PR #510 into 12.0

Signed-off-by LoisRForgeFlow
This commit is contained in:
OCA-git-bot
2020-11-05 12:01:54 +00:00
5 changed files with 7 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ Repair Calendar View
:target: https://runbot.odoo-community.org/runbot/129/12.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
|badge1| |badge2| |badge3| |badge4| |badge5|
This Module adds a calendar view for the repair orders
@@ -58,14 +58,7 @@ Contributors
* Alex Comba <alex.comba@agilebg.com>
* Carlos Jimeno <carlos.jimeno@guadaltech.es>
* María Asunción Daza <mariaasuncion.daza@guadaltech.es>
Other credits
~~~~~~~~~~~~~
Images
------
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
* Marcel Savegnago <marcel.savegnago@escodoo.com.br>
Maintainers
~~~~~~~~~~~

View File

@@ -14,3 +14,5 @@ class RepairOrder(models.Model):
copy=False,
help="Date of the repair, this field "
"and user_id defines the calendar")
duration = fields.Float('Repair Duration',
help="Duration in hours and minutes.")

View File

@@ -3,3 +3,4 @@
* Alex Comba <alex.comba@agilebg.com>
* Carlos Jimeno <carlos.jimeno@guadaltech.es>
* María Asunción Daza <mariaasuncion.daza@guadaltech.es>
* Marcel Savegnago <marcel.savegnago@escodoo.com.br>

View File

@@ -1,4 +0,0 @@
Images
------
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

View File

@@ -7,6 +7,7 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='guarantee_limit']" position="after">
<field name="date_repair"/>
<field name="duration"/>
</xpath>
<xpath expr="//field[@name='partner_id']" position="after">
<field name="user_id"/>
@@ -18,7 +19,7 @@
<field name="name">Repair Orders Calendar</field>
<field name="model">repair.order</field>
<field name="arch" type="xml">
<calendar string="Repair Orders Calendar" date_start="date_repair" color="user_id">
<calendar string="Repair Orders Calendar" date_start="date_repair" date_delay="duration" color="user_id">
<field name="product_id"/>
<field name="partner_id"/>
</calendar>