mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
18 lines
423 B
Python
18 lines
423 B
Python
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class PutAwayStrategy(models.Model):
|
|
_inherit = "product.putaway"
|
|
|
|
method = fields.Selection(
|
|
selection="_get_putaway_options",
|
|
string="Method",
|
|
default="fixed",
|
|
required=True,
|
|
)
|
|
|
|
@api.model
|
|
def _get_putaway_options(self):
|
|
return [("fixed", "Fixed Location")]
|