Scrap reason code module

This commit is contained in:
Bhavesh Odedra
2019-11-26 22:07:15 +05:30
committed by Chandresh Thakkar
parent a8882b3c67
commit c233777853
21 changed files with 847 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# Copyright (C) 2019 IBM Corp.
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ReasonCode(models.Model):
_name = 'reason.code'
_description = 'Reason Code'
name = fields.Char("Code", required=True)
description = fields.Text("Description")
location_id = fields.Many2one(
'stock.location', string="Scrap Location",
domain="[('scrap_location', '=', True)]")