Randhir Mayatra (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-purchase25-rma into lp:openobject-addons.
Requested reviews: Amit Patel (OpenERP) (apa-tiny) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-purchase25-rma/+merge/135853 Hello sir, I have make changes into purchases. -- Remove the warning for minimal quanity in purchase order -- Change the code for Send request for Quotation Thank you.. -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-purchase25-rma/+merge/135853 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-purchase25-rma.
=== modified file 'purchase/purchase.py' --- purchase/purchase.py 2012-11-20 11:36:00 +0000 +++ purchase/purchase.py 2012-11-23 10:24:49 +0000 @@ -393,14 +393,9 @@ compose_form_id = ir_model_data.get_object_reference(cr, uid, 'mail', 'email_compose_message_wizard_form')[1] except ValueError: compose_form_id = False - ctx = dict(context) - ctx.update({ - 'default_model': 'purchase.order', - 'default_res_id': ids[0], - 'default_use_template': bool(template_id), - 'default_template_id': template_id, - 'default_composition_mode': 'comment', - }) + ctx = dict(context, active_model='purchase.order', active_id=ids[0]) + ctx.update({'mail.compose.template_id': template_id}) + wf_service = netsvc.LocalService("workflow") return { 'type': 'ir.actions.act_window', 'view_type': 'form', @@ -971,7 +966,6 @@ res['warning'] = {'title': _('Warning!'), 'message': _('The selected supplier only sells this product by %s') % supplierinfo.product_uom.name } min_qty = product_uom._compute_qty(cr, uid, supplierinfo.product_uom.id, supplierinfo.min_qty, to_uom_id=uom_id) if qty < min_qty: # If the supplier quantity is greater than entered from user, set minimal. - res['warning'] = {'title': _('Warning!'), 'message': _('The selected supplier has a minimal quantity set to %s %s, you should not purchase less.') % (supplierinfo.min_qty, supplierinfo.product_uom.name)} qty = min_qty dt = self._get_date_planned(cr, uid, supplierinfo, date_order, context=context).strftime(DEFAULT_SERVER_DATETIME_FORMAT)
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp