add 2 mayur modules

This commit is contained in:
sonal
2020-08-09 14:56:02 +05:30
parent a01cf31d87
commit 26372fe496
32 changed files with 1421 additions and 0 deletions

View 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