Files
odoo-usability/sale_auto_order_policy/sale.py
2014-04-09 12:13:58 +02:00

36 lines
1.3 KiB
Python

# -*- encoding: utf-8 -*-
##############################################################################
#
# Sale Auto Order Policy module for OpenERP
# Copyright (C) 2013 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp.osv import orm
class sale_order(orm.Model):
_inherit = 'sale.order'
_defaults = {
'order_policy': 'picking',
}
# The function action_wait in sale_stock/sale_stock.py line 224
# ensures that the order_policy switches to 'manual' when
# we only have services in the order