Files
stock-logistics-warehouse/stock_putaway_method/models/product_strategy.py
2021-07-06 16:43:04 -07:00

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")]