summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry (Open ERP) <hmo@tinyerp.com>2010-02-02 19:42:37 +0530
committerHarry (Open ERP) <hmo@tinyerp.com>2010-02-02 19:42:37 +0530
commitca24db4e13e2ebba3bd84d2f59c54163fa196171 (patch)
treea8b5f9ceac59361e404423017dcba356548cbde5
parentc9339c84bbf04253c57f3948b38adb646758a8ba (diff)
[FIX] mrp: remove domain from procurement menu action
lp bug: https://launchpad.net/bugs/516026 fixed bzr revid: hmo@tinyerp.com-20100202141237-gvvrlg4176sffqif
-rw-r--r--addons/mrp/mrp.py4
-rw-r--r--addons/mrp/mrp_view.xml3
2 files changed, 3 insertions, 4 deletions
diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py
index 8aad4209b9d..59cc80fef11 100644
--- a/addons/mrp/mrp.py
+++ b/addons/mrp/mrp.py
@@ -790,7 +790,7 @@ class mrp_procurement(osv.osv):
'priority': fields.selection([('0','Not urgent'),('1','Normal'),('2','Urgent'),('3','Very Urgent')], 'Priority', required=True),
'date_planned': fields.datetime('Scheduled date', required=True),
'date_close': fields.datetime('Date Closed'),
- 'product_id': fields.many2one('product.product', 'Product', required=True),
+ 'product_id': fields.many2one('product.product', 'Product', required=True, states={'draft':[('readonly',False)]}, readonly=True),
'product_qty': fields.float('Quantity', required=True, states={'draft':[('readonly',False)]}, readonly=True),
'product_uom': fields.many2one('product.uom', 'Product UoM', required=True, states={'draft':[('readonly',False)]}, readonly=True),
'product_uos_qty': fields.float('UoS Quantity', states={'draft':[('readonly',False)]}, readonly=True),
@@ -800,7 +800,7 @@ class mrp_procurement(osv.osv):
'bom_id': fields.many2one('mrp.bom', 'BoM', ondelete='cascade', select=True),
'close_move': fields.boolean('Close Move at end', required=True),
- 'location_id': fields.many2one('stock.location', 'Location', required=True),
+ 'location_id': fields.many2one('stock.location', 'Location', required=True, states={'draft':[('readonly',False)]}, readonly=True),
'procure_method': fields.selection([('make_to_stock','from stock'),('make_to_order','on order')], 'Requisition Method', states={'draft':[('readonly',False)], 'confirmed':[('readonly',False)]},
readonly=True, required=True, help="If you encode manually a Requisition, you probably want to use" \
" a make to order method."),
diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml
index 34ea506fb23..ad0e6b95935 100644
--- a/addons/mrp/mrp_view.xml
+++ b/addons/mrp/mrp_view.xml
@@ -772,8 +772,7 @@
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.procurement</field>
<field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="domain">[('state','=','confirmed')]</field>
+ <field name="view_mode">tree,form</field>
</record>
<menuitem action="mrp_procurement_action3" id="menu_procurement_requisitions" parent="purchase.menu_procurement_management"