112
112
for product in self.browse(cr,uid,ids,context=context):
113
113
if product.virtual_available > 0:
114
self.write(cr,uid,[product.id],{'available_boolean':'Available'})
114
115
res[product.id] = 'Available'
118
self.write(cr,uid,[product.id],{'available_boolean':''})
121
123
'upc': fields.char("UPC", size=12, help="Universal Product Code (12 digits)"),
122
'available_boolean':fields.function(_stock_available, method=True,type="text", store=True, string='Available Stock'),
125
'available_bool':fields.function(_stock_available, method=True,store=False,type="text",string='Available Stock'),
123
126
'profit_code':fields.char("Code from profit", size=20, help="Code from profit database"),