quality_control * Fix wizard set test

* Expand AUTHORS

* Fix permissions
This commit is contained in:
Pedro M. Baeza
2015-03-16 03:59:56 +01:00
committed by Simone Rubino
parent 31839b7622
commit 36cd4c78dc
4 changed files with 10 additions and 4 deletions

View File

@@ -17,7 +17,10 @@ class QcInspectionSetTest(models.TransientModel):
@api.multi
def action_create_test(self):
inspection_obj = self.env['qc.inspection']
inspection_obj.browse(self.env.context['active_id']).set_test(
inspection = self.env['qc.inspection'].browse(
self.env.context['active_id'])
inspection.test = self.test
inspection.inspection_lines.unlink()
inspection.inspection_lines = inspection._prepare_inspection_lines(
self.test)
return True