[IMP] quality_control: black, isort

This commit is contained in:
ps-tubtim
2020-03-16 17:32:22 +07:00
committed by Enrique Martín
parent 7c94dfb8f8
commit d6bd05b4b4
25 changed files with 878 additions and 684 deletions

View File

@@ -14,17 +14,16 @@ class QcInspectionSetTest(models.TransientModel):
also fill in all lines of the inspection with the corresponding lines of
the template.
"""
_name = 'qc.inspection.set.test'
_description = 'Set test for inspection'
test = fields.Many2one(comodel_name='qc.test', string='Test')
_name = "qc.inspection.set.test"
_description = "Set test for inspection"
test = fields.Many2one(comodel_name="qc.test", string="Test")
@api.multi
def action_create_test(self):
inspection = self.env['qc.inspection'].browse(
self.env.context['active_id'])
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)
inspection.inspection_lines = inspection._prepare_inspection_lines(self.test)
return True