[IMP] quality_control: black, isort

This commit is contained in:
ps-tubtim
2020-03-16 17:32:22 +07:00
committed by Stefano Consolaro
parent a834796aa0
commit a6f788f2d5
25 changed files with 878 additions and 684 deletions

View File

@@ -9,17 +9,19 @@ from odoo import fields, models
class QcTrigger(models.Model):
_name = 'qc.trigger'
_description = 'Quality control trigger'
_name = "qc.trigger"
_description = "Quality control trigger"
name = fields.Char(string='Name', required=True,
translate=True)
active = fields.Boolean(string='Active', default=True)
name = fields.Char(string="Name", required=True, translate=True)
active = fields.Boolean(string="Active", default=True)
company_id = fields.Many2one(
comodel_name='res.company', string='Company',
default=lambda self: self.env['res.company']._company_default_get(
'qc.test'))
comodel_name="res.company",
string="Company",
default=lambda self: self.env["res.company"]._company_default_get("qc.test"),
)
partner_selectable = fields.Boolean(
string='Selectable by partner', default=False, readonly=True,
help='This technical field is to allow to filter by partner in'
' triggers')
string="Selectable by partner",
default=False,
readonly=True,
help="This technical field is to allow to filter by partner in" " triggers",
)