mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_auto_assign: black, isort, prettier
This commit is contained in:
@@ -6,11 +6,11 @@ from odoo import api, models
|
||||
|
||||
|
||||
class MrpProduction(models.Model):
|
||||
_inherit = 'mrp.production'
|
||||
_inherit = "mrp.production"
|
||||
|
||||
@api.model
|
||||
def create(self, values):
|
||||
production = super(MrpProduction, self).create(values)
|
||||
if production.availability != 'none':
|
||||
if production.availability != "none":
|
||||
production.action_assign()
|
||||
return production
|
||||
|
||||
Reference in New Issue
Block a user