[IMP] stock: improve field name: 'scrap location' instead of 'scraped' on stock.location

bzr revid: qdp-launchpad@tinyerp.com-20100505115815-eoqa80ydw00i0bql
This commit is contained in:
qdp-launchpad@tinyerp.com
2010-05-05 13:58:15 +02:00
parent ab3736820c
commit 1ef96229cc
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -182,7 +182,7 @@ class stock_location(osv.osv):
'stock_real_value': fields.function(_product_value, method=True, type='float', string='Real Stock Value', multi="stock"),
'stock_virtual_value': fields.function(_product_value, method=True, type='float', string='Virtual Stock Value', multi="stock"),
'company_id': fields.many2one('res.company', 'Company', required=True,select=1),
'scraped': fields.boolean('Scraped'),
'scrap_location': fields.boolean('Scrap Location', help='Check this box if the current location is a place for destroyed items'),
}
_defaults = {
'active': lambda *a: 1,
@@ -195,7 +195,7 @@ class stock_location(osv.osv):
'posy': lambda *a: 0,
'posz': lambda *a: 0,
'icon': lambda *a: False,
'scraped': lambda *a: False,
'scrap_location': lambda *a: False,
}
def chained_location_get(self, cr, uid, location, partner=None, product=None, context={}):
+1 -1
View File
@@ -73,7 +73,7 @@
<form string="Scrap Move">
<separator string="Scrap Products" colspan="4"/>
<field name="product_id" colspan="4" readonly="1"/>
<field name="location_id" colspan="4" string="Dest. Location" domain="[('usage','&lt;&gt;','view'),('scraped','=',True)]"/>
<field name="location_id" colspan="4" string="Dest. Location" domain="[('usage','&lt;&gt;','view'),('scrap_location','=',True)]"/>
<field name="product_qty" colspan="2"/>
<field name="product_uom" nolabel="1" readonly="1"/>
<newline/>