Lead times are too advanced for most of our online users. Most of the companies just buy and sell and don't manage scheduling. As an example, when they do MTO, they purchase the same day they sold. The problem with current lead time is that users don't understand the dates produced on delivery orders and receptions. They even have receptions in the past, and they don't understand why. (customer lead time default to 7 and vendor lead time to 1, as well as security days, ...)
22 lines
1023 B
Python
22 lines
1023 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from openerp import fields, models
|
|
|
|
class company(models.Model):
|
|
_inherit = 'res.company'
|
|
|
|
po_lead = fields.Float(string='Purchase Lead Time', required=True,\
|
|
help="Margin of error for vendor lead times. When the system "
|
|
"generates Purchase Orders for procuring products, "
|
|
"they will be scheduled that many days earlier "
|
|
"to cope with unexpected vendor delays.", default=0.0)
|
|
|
|
po_double_validation = fields.Selection([
|
|
('one_step', 'Confirm purchase orders in one step'),
|
|
('two_step', 'Get 2 levels of approvals to confirm a purchase order')
|
|
], string="Levels of Approvals", default='one_step',\
|
|
help="Provide a double validation mechanism for purchases")
|
|
po_double_validation_amount = fields.Monetary(string='Double validation amount', default=5000,\
|
|
help="Minimum amount for which a double validation is required")
|