mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Declare orderpoint on a location allowing to replenish any product with the same criteria
12 lines
355 B
Python
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"]
|