Files
tra_backend/MKS_Tradex_Backend_2/models/stock_picking.py
2020-09-04 18:25:47 +00:00

17 lines
424 B
Python
Executable File

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, SUPERUSER_ID, _
class stock_picking(models.Model):
_inherit = "stock.picking"
state = fields.Selection(selection_add=[('qa_approval', 'QA Validation')],
)
def button_validate_qa_approval(self):
self.state = 'qa_approval'
return True