[FIX] repair: create in mobile view

When creating a repair order in mobile view, it is not possible to add
any Parts or Operations since required fields are not set.

We make the corresponding form views consistent with the tree views.

opw-2005905

closes odoo/odoo#34016

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Nicolas Martinelli
2019-06-11 07:10:59 +00:00
parent 94a2c54fb5
commit be1ee79322
+2 -2
View File
@@ -79,6 +79,7 @@
<page string="Repair Line">
<group>
<group>
<field name="type"/>
<field name="product_id"/>
<field name="name"/>
<label for="product_uom_qty"/>
@@ -86,7 +87,6 @@
<field name="product_uom_qty"/>
<field name="product_uom" groups="uom.group_uom"/>
</div>
<field name="type" invisible="1"/>
<field name="price_unit"/>
<field name="tax_id" widget="many2many_tags" domain="[('type_tax_use','=','sale')]"/>
<field name="invoiced" invisible="1"/>
@@ -137,7 +137,7 @@
<field name="fees_lines">
<form string="Fees">
<group>
<field name="product_id"/>
<field name="product_id" domain="[('type','=','service')]" required="True"/>
<field name="name"/>
<label for="product_uom_qty"/>
<div class="o_row">