Il 03/02/2012 15:06, Lorenzo Battistini ha scritto:
Il 30 gennaio 2012 23:03, Sergio Corato<[email protected]> ha scritto:
Ho fatto questa patch:
http://www.openerp-italia.org/images/fbfiles/files/project_solve_bug_analytical-dab0bee18d4b823361dd45bb993a18cd.zip
Per chi la vuole provare, fra un po' la metto come soluzione al bug che
avevo aperto
Nel file project_analytic_cost.py vedo che dall'ordine di vendita
scrivi il conto analitico nell'ordine di approvvigionamento. Poi
dall'approvvigionamento all'ordine d'acquisto lo fa lui?
No, più sotto lo fa lo stesso script con le righe:
cr.execute('select purchase_id from procurement_order where id = %s ',
(line.procurement_id.id,))
order_ids = map(lambda x: x[0], cr.fetchall())
purchase_ids = self.pool.get('purchase.order.line').search(cr, uid,
[('order_id', '=', order_ids)])
for purchase_id in purchase_ids:
self.pool.get('purchase.order.line').write(cr,uid,purchase_id, {
'account_analytic_id': order.project_id.id ,})
_______________________________________________
Mailing list: https://launchpad.net/~openobject-italia-core-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openobject-italia-core-devs
More help : https://help.launchpad.net/ListHelp