mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
quality_control * Fix wizard set test
* Expand AUTHORS * Fix permissions
This commit is contained in:
committed by
Simone Rubino
parent
31839b7622
commit
36cd4c78dc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user