Bharat Devnani (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-582049-bde into 
lp:openobject-addons/6.1.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-582049-bde/+merge/135658

Hello Sir,

I have added the condition to raise warning when Inventory Valuation is Real 
Time and Stock Valuation is not defined in product and product category 
respectively.

Steps to reproduce:
-> Warehouse -> Products -> Products
1) Create Product
   Inventory Valuation : Periodical (manual) (Accounting Tab)
   Costing Method : Average Price
   Update Cost Price generates warning Message
   "Valuation Account is not specified for Product Category"

Thanks & Regards,
Devnani Bharat R.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-582049-bde/+merge/135658
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-582049-bde.
=== modified file 'stock/product.py'
--- stock/product.py	2012-06-19 07:40:07 +0000
+++ stock/product.py	2012-11-22 12:14:25 +0000
@@ -72,7 +72,7 @@
         product_obj=self.browse(cr, uid, ids, context=context)[0]
         account_valuation = product_obj.categ_id.property_stock_valuation_account_id
         account_valuation_id = account_valuation and account_valuation.id or False
-        if not account_valuation_id: raise osv.except_osv(_('Error!'), _('Valuation Account is not specified for Product Category: %s') % (product_obj.categ_id.name))
+        if product_obj.valuation == 'real_time' and not account_valuation_id: raise osv.except_osv(_('Error!'), _('Valuation Account is not specified for Product Category: %s') % (product_obj.categ_id.name))
         move_ids = []
         loc_ids = location_obj.search(cr, uid,[('usage','=','internal')])
         for rec_id in ids:

_______________________________________________
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

Reply via email to