Merge lp:~numerigraphe-team/openobject-addons/trunk-wms-inventory-help-order into lp:openobject-addons

Proposed by Lionel Sausin - Initiatives/Numérigraphe
Status: Needs review
Proposed branch: lp:~numerigraphe-team/openobject-addons/trunk-wms-inventory-help-order
Merge into: lp:openobject-addons
Diff against target: 32 lines (+6/-2)
1 file modified
stock/stock.py (+6/-2)
To merge this branch: bzr merge lp:~numerigraphe-team/openobject-addons/trunk-wms-inventory-help-order
Reviewer Review Type Date Requested Status
qdp (OpenERP) Pending
OpenERP Core Team Pending
Review via email: mp+219303@code.launchpad.net

Description of the change

[Re-posting this proposal because Launchpad crashed while processing it]

This branch improves the help text for the inventory date and adds help for the "technical field" for power users and developers.
It also changes the inventory order to a more natural one.

Rebased on trunk with new WMS. Runs green on Runbot.

To post a comment you must log in.

Unmerged revisions

9451. By Numérigraphe

[IMP] improve help text and ser record order for inventories

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2014-05-08 10:41:22 +0000
3+++ stock/stock.py 2014-05-13 08:23:30 +0000
4@@ -2448,7 +2448,10 @@
5
6 _columns = {
7 'name': fields.char('Inventory Reference', size=64, required=True, readonly=True, states={'draft': [('readonly', False)]}, help="Inventory Name."),
8- 'date': fields.datetime('Inventory Date', required=True, readonly=True, help="The date that will be used for the stock level check of the products and the validation of the stock move related to this inventory."),
9+ 'date': fields.datetime('Inventory Date', required=True, readonly=True,
10+ help="The date that will be used for the validation date of the stock move related to this inventory (and for the valuation accounting entries, if any). "
11+ "Only the stock moves before this date will be taken into account when calculating the stock level differences. "
12+ "To ensure a correct calculation, this date may not be in the future. It may be set in the past if no Stock Moves have been recorded for the related Location after this date."),
13 'line_ids': fields.one2many('stock.inventory.line', 'inventory_id', 'Inventories', readonly=False, states={'done': [('readonly', True)]}, help="Inventory Lines."),
14 'move_ids': fields.one2many('stock.move', 'inventory_id', 'Created Moves', help="Inventory Moves.", states={'done': [('readonly', True)]}),
15 'state': fields.selection(INVENTORY_STATE_SELECTION, 'Status', readonly=True, select=True),
16@@ -2458,7 +2461,7 @@
17 'package_id': fields.many2one('stock.quant.package', 'Inventoried Pack', readonly=True, states={'draft': [('readonly', False)]}, help="Specify Pack to focus your inventory on a particular Pack."),
18 'partner_id': fields.many2one('res.partner', 'Inventoried Owner', readonly=True, states={'draft': [('readonly', False)]}, help="Specify Owner to focus your inventory on a particular Owner."),
19 'lot_id': fields.many2one('stock.production.lot', 'Inventoried Lot/Serial Number', readonly=True, states={'draft': [('readonly', False)]}, help="Specify Lot/Serial Number to focus your inventory on a particular Lot/Serial Number."),
20- 'move_ids_exist': fields.function(_get_move_ids_exist, type='boolean', string=' Stock Move Exists?', help='technical field for attrs in view'),
21+ 'move_ids_exist': fields.function(_get_move_ids_exist, type='boolean', string=' Stock Move Exists?', help='Automatically checked when the inventory has Stock Moves attached. OpenERP will adapt the Inventory Form according to this piece of information.'),
22 'filter': fields.selection(_get_available_filters, 'Selection Filter', required=True),
23 'total_qty': fields.function(_get_total_qty, type="float"),
24 }
25@@ -2470,6 +2473,7 @@
26 except:
27 return False
28
29+ _order='date, name'
30 _defaults = {
31 'date': fields.datetime.now,
32 'state': 'draft',

Subscribers

People subscribed via source and target branches

to all changes: