mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Initial ideas of having product level 'Planning Policy' for grouping and limiting where items can be planned from and how.
This commit is contained in:
16
sale_planner/models/planning.py
Normal file
16
sale_planner/models/planning.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class PlanningPolicy(models.Model):
|
||||
_name = 'sale.order.planning.policy'
|
||||
|
||||
name = fields.Char(string='Name')
|
||||
carrier_filter_id = fields.Many2one(
|
||||
'ir.filters',
|
||||
string='Delivery Carrier Filter',
|
||||
)
|
||||
warehouse_filter_id = fields.Many2one(
|
||||
'ir.filters',
|
||||
string='Warehouse Filter',
|
||||
)
|
||||
always_closest_warehouse = fields.Boolean(string='Always Plan Closest Warehouse')
|
||||
Reference in New Issue
Block a user