summaryrefslogtreecommitdiff
path: root/addons/procurement
diff options
context:
space:
mode:
authoruco <uco@tinyerp.com>2010-07-10 10:25:33 +0530
committeruco <uco@tinyerp.com>2010-07-10 10:25:33 +0530
commitdf65d72814b245970d0d2dfca4bcd9c2ca85f9a7 (patch)
tree58fa147b64f35ee2b5c8951d3daa9566fe0ae910 /addons/procurement
parent2185d20b4c7dafe40ad5c0a484207e58eeacbd42 (diff)
parentb051735eecccd1e66d8f28d2ff50ba45435b49f7 (diff)
[MERGE]
bzr revid: uco@tinyerp.com-20100710045533-op3teksgyqouzv0o
Diffstat (limited to 'addons/procurement')
-rw-r--r--addons/procurement/schedulers.py28
-rw-r--r--addons/procurement/scripts/scheduler.py30
2 files changed, 27 insertions, 31 deletions
diff --git a/addons/procurement/schedulers.py b/addons/procurement/schedulers.py
index dc66d9e3e8b..c0cc0f736b6 100644
--- a/addons/procurement/schedulers.py
+++ b/addons/procurement/schedulers.py
@@ -31,7 +31,15 @@ class procurement_order(osv.osv):
def _procure_confirm(self, cr, uid, ids=None, use_new_cursor=False, context=None):
'''
- use_new_cursor: False or the dbname
+ Call the scheduler to check the procurement order
+
+ @param self: The object pointer
+ @param cr: The current row, from the database cursor,
+ @param uid: The current user ID for security checks
+ @param ids: List of selected IDs
+ @param use_new_cursor: False or the dbname
+ @param context: A standard dictionary for contextual values
+ @return: Dictionary of values
'''
if not context:
context = {}
@@ -126,6 +134,15 @@ class procurement_order(osv.osv):
return {}
def create_automatic_op(self, cr, uid, context=None):
+ """
+ Create procurement of virtual stock < 0
+
+ @param self: The object pointer
+ @param cr: The current row, from the database cursor,
+ @param uid: The current user ID for security checks
+ @param context: A standard dictionary for contextual values
+ @return: Dictionary of values
+ """
if not context:
context = {}
product_obj = self.pool.get('product.product')
@@ -167,7 +184,16 @@ class procurement_order(osv.osv):
def _procure_orderpoint_confirm(self, cr, uid, automatic=False,\
use_new_cursor=False, context=None, user_id=False):
'''
+ Create procurement based on Orderpoint
use_new_cursor: False or the dbname
+
+ @param self: The object pointer
+ @param cr: The current row, from the database cursor,
+ @param user_id: The current user ID for security checks
+ @param context: A standard dictionary for contextual values
+ @param param: False or the dbname
+ @return: Dictionary of values
+ """
'''
if not context:
context = {}
diff --git a/addons/procurement/scripts/scheduler.py b/addons/procurement/scripts/scheduler.py
deleted file mode 100644
index 648da5cdddc..00000000000
--- a/addons/procurement/scripts/scheduler.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
-#
-# 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/>.
-#
-##############################################################################
-
-import xmlrpclib
-
-sock = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/wizard')
-wiz_id = sock.create('trunk', 1, 'admin', 'procurement.order.compute.all')
-sock.execute('trunk', 1, 'admin', wiz_id, {'form': {'po_cycle': 1.0, 'po_lead': 1.0, 'user_id': 3, 'schedule_cycle': 1.0, 'picking_lead': 1.0, 'security_lead': 50.0, 'automatic': False}, 'ids': [], 'report_type': 'pdf', 'model': 'ir.ui.menu', 'id': False}, 'compute', {})
-
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-