[FIX] SO -> with a popup to select a product, if you save & close the popup, its...
authorRGA(OpenERP) <>
Fri, 14 Dec 2012 10:40:42 +0000 (16:10 +0530)
committerRGA(OpenERP) <>
Fri, 14 Dec 2012 10:40:42 +0000 (16:10 +0530)
bzr revid: rgaopenerp-20121214104042-j8yjcfbiisz2pbu6

addons/sale/sale.py

index 8bab265..030cd87 100644 (file)
@@ -732,7 +732,7 @@ class sale_order_line(osv.osv):
         'product_uos': fields.many2one('product.uom', 'Product UoS'),
         'discount': fields.float('Discount (%)', digits_compute= dp.get_precision('Discount'), readonly=True, states={'draft': [('readonly', False)]}),
         'th_weight': fields.float('Weight', readonly=True, states={'draft': [('readonly', False)]}),
-        'state': fields.selection([('cancel', 'Cancelled'),('draft', 'Draft'),('confirmed', 'Confirmed'),('exception', 'Exception'),('done', 'Done')], 'Status', required=True, readonly=True,
+        'state': fields.selection([('cancel', 'Cancelled'),('draft', 'Draft'),('confirmed', 'Confirmed'),('exception', 'Exception'),('done', 'Done')], 'Status', required=True,
                 help='* The \'Draft\' status is set when the related sales order in draft status. \
                     \n* The \'Confirmed\' status is set when the related sales order is confirmed. \
                     \n* The \'Exception\' status is set when the related sales order is set as exception. \