[IMP] stock: stock_location_product wizard: Suppressed filter on location in the extended options and inactivates preselected filter in present case.
bzr revid: uco@tinyerp.co.in-20100318071405-2pmbpwn2sluxaozd
This commit is contained in:
@@ -20,13 +20,6 @@
|
||||
##############################################################################
|
||||
|
||||
from osv import fields, osv
|
||||
from service import web_services
|
||||
from tools.misc import UpdateableStr, UpdateableDict
|
||||
from tools.translate import _
|
||||
import netsvc
|
||||
import pooler
|
||||
import time
|
||||
import wizard
|
||||
|
||||
class stock_location_product(osv.osv_memory):
|
||||
_name = "stock.location.product"
|
||||
@@ -34,7 +27,7 @@ class stock_location_product(osv.osv_memory):
|
||||
_columns = {
|
||||
'from_date': fields.datetime('From'),
|
||||
'to_date': fields.datetime('To'),
|
||||
}
|
||||
}
|
||||
|
||||
def action_open_window(self, cr, uid, ids, context):
|
||||
"""
|
||||
@@ -51,10 +44,8 @@ class stock_location_product(osv.osv_memory):
|
||||
"""
|
||||
mod_obj = self.pool.get('ir.model.data')
|
||||
for location_obj in self.read(cr, uid, ids, ['from_date', 'to_date']):
|
||||
result = mod_obj._get_id(cr, uid, 'product', 'product_search_form_view')
|
||||
id = mod_obj.read(cr, uid, result, ['res_id'])
|
||||
return {
|
||||
'name': 'product',
|
||||
'name': False,
|
||||
'view_type': 'form',
|
||||
'view_mode': 'tree,form',
|
||||
'res_model': 'product.product',
|
||||
@@ -63,8 +54,7 @@ class stock_location_product(osv.osv_memory):
|
||||
'from_date': location_obj['from_date'],
|
||||
'to_date': location_obj['to_date']},
|
||||
'domain': [('type', '<>', 'service')],
|
||||
'search_view_id': id['res_id']
|
||||
}
|
||||
}
|
||||
|
||||
stock_location_product()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user