← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/fixed_error_purchase_button into lp:~openobject-training/openobject-addons/training

 

gpa(Open ERP) has proposed merging lp:~openerp-dev/openobject-addons/fixed_error_purchase_button into lp:~openobject-training/openobject-addons/training.

Requested reviews:
  Bhumika (OpenERP) (sbh-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/fixed_error_purchase_button/+merge/54832

Fixed the error when click on the re-generate purchase order the TypeError and Return error
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/fixed_error_purchase_button/+merge/54832
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/fixed_error_purchase_button.
=== modified file 'training/training.py'
--- training/training.py	2011-03-25 07:26:27 +0000
+++ training/training.py	2011-03-25 10:03:30 +0000
@@ -2592,6 +2592,7 @@
                 filename = seance.name.replace('/', ' ') + '.pdf'
                 emails.send_email(cr, uid, 'procurements', 's', to=to, attachments=[(filename, pdf),], context=context, seance=seance, partner=partner)
 
+        return True
     # training.seance
     def action_workflow_confirm(self, cr, uid, ids, context=None):
         self.action_do_confirm(cr, uid, ids, context=context)
@@ -4547,7 +4548,7 @@
 
             uom_id = po_line.product_id.uom_po_id.id
 
-            qty = self.pool.get('product.uom')._compute_qty(cr, uid, po_line.product_uom.id, po_line.proc_qty, uom_id)
+            qty = self.pool.get('product.uom')._compute_qty(cr, uid, po_line.product_uom.id, int(po_line.proc_qty), uom_id)
             if po_line.product_id.seller_ids[0].qty:
                 qty=max(qty,po_line.product_id.seller_ids[0].qty)
 


Follow ups