mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[14.0][ADD] rma_scrap
This commit is contained in:
committed by
JasminSForgeFlow
parent
14401983a8
commit
a98271f31a
24
rma_scrap/models/rma_operation.py
Normal file
24
rma_scrap/models/rma_operation.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# Copyright 2022 ForgeFlow S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class RmaOperation(models.Model):
|
||||
_inherit = "rma.operation"
|
||||
|
||||
scrap_policy = fields.Selection(
|
||||
selection=[
|
||||
("no", "Not required"),
|
||||
("ordered", "Based on Ordered Quantities"),
|
||||
("received", "Based on Received Quantities"),
|
||||
],
|
||||
string="Scrap Policy",
|
||||
default="no",
|
||||
)
|
||||
|
||||
scrap_location_id = fields.Many2one(
|
||||
comodel_name="stock.location",
|
||||
string="Scrap Destination Location",
|
||||
domain="[('scrap_location', '=', True), ('company_id', 'in', [company_id, False])]",
|
||||
)
|
||||
Reference in New Issue
Block a user