mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_progress_button: black, isort, prettier
This commit is contained in:
@@ -3,16 +3,19 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class MrpProduction(models.Model):
|
||||
_inherit = 'mrp.production'
|
||||
_inherit = "mrp.production"
|
||||
|
||||
@api.multi
|
||||
def action_progress(self):
|
||||
self.write({
|
||||
'state': 'progress',
|
||||
'date_start': datetime.now(),
|
||||
})
|
||||
self.write(
|
||||
{
|
||||
"state": "progress",
|
||||
"date_start": datetime.now(),
|
||||
}
|
||||
)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user