mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-17 10:19:09 +02:00
add 2 mayur modules
This commit is contained in:
16
MKS_Tradex_Backend_2/models/stock_picking.py
Executable file
16
MKS_Tradex_Backend_2/models/stock_picking.py
Executable file
@@ -0,0 +1,16 @@
|
||||
# -*- 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 approval')],
|
||||
)
|
||||
|
||||
def button_validate_qa_approval(self):
|
||||
self.state = 'qa_approval'
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user