[FIX]stock:set a size of complete_name field in stock.location
authorMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Mon, 5 Dec 2011 11:19:20 +0000 (16:49 +0530)
committerMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Mon, 5 Dec 2011 11:19:20 +0000 (16:49 +0530)
lp bug: https://launchpad.net/bugs/899144 fixed

bzr revid: mma@tinyerp.com-20111205111920-mx5rp6gc3rirf9fw

addons/stock/stock.py

index 461c863..b76ecd1 100644 (file)
@@ -167,7 +167,7 @@ class stock_location(osv.osv):
                        \n* Production: Virtual counterpart location for production operations: this location consumes the raw material and produces finished products
                       """, select = True),
          # temporarily removed, as it's unused: 'allocation_method': fields.selection([('fifo', 'FIFO'), ('lifo', 'LIFO'), ('nearest', 'Nearest')], 'Allocation Method', required=True),
-        'complete_name': fields.function(_complete_name, type='char', size=100, string="Location Name", store=True),
+        'complete_name': fields.function(_complete_name, type='char', size=256, string="Location Name", store=True),
 
         'stock_real': fields.function(_product_value, type='float', string='Real Stock', multi="stock"),
         'stock_virtual': fields.function(_product_value, type='float', string='Virtual Stock', multi="stock"),