mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
19 lines
519 B
Python
19 lines
519 B
Python
# 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 ScrapReasonCode(models.Model):
|
|
_name = "scrap.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)]",
|
|
)
|