summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjay Gohel (Open ERP) <sgo@tinyerp.com>2012-06-19 17:45:44 +0530
committerSanjay Gohel (Open ERP) <sgo@tinyerp.com>2012-06-19 17:45:44 +0530
commitd1e3b9edb7c19f5490d1caa5e07d16f333111bc8 (patch)
tree6b065ea0829f3fc26d139b23c57cd974f771afe9
parentb6861b2c0b537397b22717710da42e8c43fd7ef7 (diff)
[IMP]current location set as required if delivery bool is true
bzr revid: sgo@tinyerp.com-20120619121544-vlmgqh6eyl1oyy4e
-rw-r--r--addons/mrp_repair/mrp_repair_view.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp_repair/mrp_repair_view.xml b/addons/mrp_repair/mrp_repair_view.xml
index 80ae7ae919f..0ea08fe6388 100644
--- a/addons/mrp_repair/mrp_repair_view.xml
+++ b/addons/mrp_repair/mrp_repair_view.xml
@@ -165,7 +165,7 @@
<group col="4">
<field name="invoice_id"/>
<field name="picking_id"/>
- <field name="location_id"/>
+ <field name="location_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}"/>
<field name="location_dest_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
</group>