summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorsvs-odoo <svs@odoo.com>2019-09-17 13:04:58 +0000
committersvs-odoo <svs@odoo.com>2019-09-18 07:50:59 +0000
commit36b1843b436433a8552bbdd01a57caa90852eadb (patch)
tree90009ae7159dc447e444faf17c6726fb31a46938 /addons
parent8b24456ecf498fecb2056480ea6fd97c2fddd74e (diff)
[FIX] repair: forbids add service as repair parts
Diffstat (limited to 'addons')
-rw-r--r--addons/repair/views/repair_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/repair/views/repair_views.xml b/addons/repair/views/repair_views.xml
index 4069a9f4369..2f46197514e 100644
--- a/addons/repair/views/repair_views.xml
+++ b/addons/repair/views/repair_views.xml
@@ -116,7 +116,7 @@
</form>
<tree string="Operations" editable="bottom">
<field name="type"/>
- <field name="product_id"/>
+ <field name="product_id" domain="[('type', '!=', 'service')]"/>
<field name='name' optional="show"/>
<field name="product_uom_category_id" invisible="1"/>
<field name="lot_id" domain="[('product_id', '=', product_id)]" context="{'default_product_id': product_id}" groups="stock.group_production_lot"/>