[IMP] account,auction,purchase: Warnings corrected.
bzr revid: uco@tinyerp.com-20100927121854-213rc5ubnfnonet3
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import pooler
|
||||
import time
|
||||
from report import report_sxw
|
||||
|
||||
@@ -43,7 +42,6 @@ class account_analytic_balance(report_sxw.rml_parse):
|
||||
self.acc_sum_list = []# maintains a list of all ids
|
||||
|
||||
def get_children(self, ids):
|
||||
ids2 = []
|
||||
read_data = self.pool.get('account.analytic.account').read(self.cr, self.uid, ids,['child_ids','code','complete_name','balance'])
|
||||
for data in read_data:
|
||||
if (data['id'] not in self.acc_ids):
|
||||
@@ -54,7 +52,7 @@ class account_analytic_balance(report_sxw.rml_parse):
|
||||
self.acc_ids.append(data['id'])
|
||||
self.read_data.append(data)
|
||||
if data['child_ids']:
|
||||
res = self.get_children(data['child_ids'])
|
||||
self.get_children(data['child_ids'])
|
||||
return True
|
||||
|
||||
|
||||
|
||||
@@ -655,7 +655,6 @@ class auction_lots(osv.osv):
|
||||
if lot.bord_vnd_id.id in invoices:
|
||||
inv_id = invoices[lot.bord_vnd_id.id]
|
||||
else:
|
||||
res = partner_obj.address_get(cr, uid, [lot.bord_vnd_id.partner_id.id], ['contact', 'invoice'])
|
||||
inv = {
|
||||
'name': 'Auction:' +lot.name,
|
||||
'journal_id': lot.auction_id.journal_seller_id.id,
|
||||
|
||||
@@ -50,7 +50,9 @@
|
||||
-
|
||||
I run the scheduler.
|
||||
-
|
||||
!workflow {model: procurement.order, action: button_check, ref: procurement_order_testcase0}
|
||||
!function {model: procurement.order, name: run_scheduler}:
|
||||
- model: procurement.order
|
||||
search: "[]"
|
||||
-
|
||||
I check that purchase order is generated.
|
||||
-
|
||||
@@ -81,11 +83,11 @@
|
||||
!python {model: stock.picking }: |
|
||||
import time
|
||||
procurement_obj = self.pool.get('procurement.order')
|
||||
proc_ids = procurement_obj.browse(cr, uid, [ref('procurement_order_testcase0')])[0]
|
||||
picking_id = self.search(cr, uid, [('origin', '=', proc_ids.purchase_id.name)])
|
||||
if picking_id:
|
||||
pick=self.browse(cr,uid,picking_id[0])
|
||||
move =pick.move_lines[0]
|
||||
proc_ids = procurement_obj.browse(cr, uid, [ref('procurement_order_testcase0')])[0]
|
||||
picking_ids = self.search(cr, uid, [('origin', '=', proc_ids.purchase_id.name),('type','=','in')])
|
||||
for picking_id in picking_ids:
|
||||
pick=self.browse(cr, uid, picking_id)
|
||||
move = pick.move_lines[0]
|
||||
partial_datas = {
|
||||
'partner_id':pick.address_id.partner_id.id,
|
||||
'address_id': pick.address_id.id,
|
||||
@@ -96,7 +98,7 @@
|
||||
'product_qty': move.product_qty,
|
||||
'product_uom': move.product_uom.id,
|
||||
}
|
||||
self.do_partial(cr, uid, picking_id,partial_datas)
|
||||
self.do_partial(cr, uid, [pick.id], partial_datas)
|
||||
-
|
||||
I confirm the Reservation.
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user