← Back to team overview

openerp-wms-expert team mailing list archive

[Merge] lp:~numerigraphe/openobject-addons/7.0-inventory-help into lp:openobject-addons

 

You have been requested to review the proposed merge of lp:~numerigraphe/openobject-addons/7.0-inventory-help into lp:openobject-addons.

For more details, see:
https://code.launchpad.net/~numerigraphe/openobject-addons/7.0-inventory-help/+merge/142694

I propose to improve the help texts and field names of dates in the stock inventories, and to order the inventories by date of effect and name.
Lionel Sausin.

-- 
https://code.launchpad.net/~numerigraphe/openobject-addons/7.0-inventory-help/+merge/142694
Your team OpenERP WMS Expert is requested to review the proposed merge of lp:~numerigraphe/openobject-addons/7.0-inventory-help into lp:openobject-addons.
=== modified file 'stock/stock.py'
--- stock/stock.py	2012-12-21 16:48:08 +0000
+++ stock/stock.py	2013-01-10 13:52:29 +0000
@@ -2745,14 +2745,23 @@
     _description = "Inventory"
     _columns = {
         'name': fields.char('Inventory Reference', size=64, required=True, readonly=True, states={'draft': [('readonly', False)]}),
-        'date': fields.datetime('Creation Date', required=True, readonly=True, states={'draft': [('readonly', False)]}),
-        'date_done': fields.datetime('Date done'),
+        'date': fields.datetime('Date', required=True, readonly=True, states={'draft': [('readonly', False)]},
+            help="The date when this inventory was actually conducted. "
+                 "Only the stock moves before this date will be taken into "
+                 "account when calculating the stock level differences. "
+                 "This is also the date of effect of all the Stock Moves "
+                 "created when this inventory is 'Done'."),
+        'date_done': fields.datetime('Date done',
+            help="The date when this inventory was marked 'Done', "
+                 "fixing the stock levels. This is NOT the"
+                 "date of effect of the Stock Moves created to this inventory."),
         'inventory_line_id': fields.one2many('stock.inventory.line', 'inventory_id', 'Inventories', readonly=True, states={'draft': [('readonly', False)]}),
         'move_ids': fields.many2many('stock.move', 'stock_inventory_move_rel', 'inventory_id', 'move_id', 'Created Moves'),
         'state': fields.selection( (('draft', 'Draft'), ('cancel','Cancelled'), ('confirm','Confirmed'), ('done', 'Done')), 'Status', readonly=True, select=True),
         'company_id': fields.many2one('res.company', 'Company', required=True, select=True, readonly=True, states={'draft':[('readonly',False)]}),
 
     }
+    _order='date, name'
     _defaults = {
         'date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
         'state': 'draft',


References