Files
stock-logistics-warehouse/stock_putaway_method/models/product_strategy.py
2021-07-12 09:21:01 -07:00

18 lines
427 B
Python

# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class StockPutawayRule(models.Model):
_inherit = "stock.putaway.rule"
method = fields.Selection(
selection="_get_putaway_options",
string="Method",
default="fixed",
required=True,
)
@api.model
def _get_putaway_options(self):
return [("fixed", "Fixed Location")]