Mayur Maheshwari(OpenErp) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-790091-mma into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #790091 in OpenERP Addons: "RFQ: no warning when price is missing in
pricelist"
https://bugs.launchpad.net/openobject-addons/+bug/790091
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-790091-mma/+merge/63522
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-790091-mma/+merge/63522
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-790091-mma.
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py 2011-04-26 07:39:18 +0000
+++ purchase/purchase.py 2011-06-06 07:34:32 +0000
@@ -704,6 +704,10 @@
'uom': uom,
'date': date_order,
})[pricelist]
+ if price is False:
+ raise osv.except_osv(_('No valid pricelist line found !'), _("Couldn't find a pricelist line matching this product and quantity.\n""You have to change either the product, the quantity or the pricelist."))
+ else:
+ result.update({'price_unit': price})
dt = (datetime.now() + relativedelta(days=int(seller_delay) or 0.0)).strftime('%Y-%m-%d %H:%M:%S')
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp