Files
stock-logistics-warehouse/stock_location_orderpoint/models/stock_rule.py
Michael Tietz a83a92afac [ADD] stock_location_orderpoint:
Declare orderpoint on a location allowing to replenish any product with the same criteria
2023-04-24 13:56:22 +02:00

12 lines
355 B
Python

# Copyright 2023 Michael Tietz (MT Software) <mtietz@mt-software.de>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class StockRule(models.Model):
_inherit = "stock.rule"
def _get_custom_move_fields(self):
res = super()._get_custom_move_fields()
return res + ["location_orderpoint_id"]