mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[ADD] rma_put_away
This commit is contained in:
committed by
DavidJForgeFlow
parent
48b5cd7e64
commit
ce71a05b8a
29
rma_put_away/models/rma_operation.py
Normal file
29
rma_put_away/models/rma_operation.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# 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"
|
||||
|
||||
put_away_policy = fields.Selection(
|
||||
selection=[
|
||||
("no", "Not required"),
|
||||
("ordered", "Based on Ordered Quantities"),
|
||||
("received", "Based on Received Quantities"),
|
||||
],
|
||||
string="Put Away Policy",
|
||||
default="no",
|
||||
)
|
||||
put_away_route_id = fields.Many2one(
|
||||
comodel_name="stock.location.route",
|
||||
string="Put Away Route",
|
||||
domain=[("rma_selectable", "=", True)],
|
||||
default=lambda self: self._default_routes(),
|
||||
)
|
||||
|
||||
put_away_location_id = fields.Many2one(
|
||||
comodel_name="stock.location",
|
||||
string="Put Away Destination Location",
|
||||
)
|
||||
Reference in New Issue
Block a user