mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
no msg
This commit is contained in:
committed by
lreficent
parent
8a25028eab
commit
fcab3d846f
@@ -40,10 +40,10 @@ class QcTestWizard(orm.TransientModel):
|
||||
_name = 'qc.test.set.template.wizard'
|
||||
|
||||
def _default_test_template_id(self, cr, uid, context=None):
|
||||
active_id = context.get('active_id', False)
|
||||
test = self.pool['qc.test'].browse(cr, uid, active_id, context=context)
|
||||
ids = self.pool['qc.test.template'].search(cr, uid, [('object_id', '=',
|
||||
test.object_id)],
|
||||
test = self.pool['qc.test'].browse(
|
||||
cr, uid, context.get('active_id', False), context=context)
|
||||
cond = [('object_id', '=', test.object_id.id)]
|
||||
ids = self.pool['qc.test.template'].search(cr, uid, cond,
|
||||
context=context)
|
||||
return ids and ids[0] or False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user