Merge lp:~numerigraphe/openobject-addons/trunk-stock-available-help into lp:openobject-addons

Proposed by Numérigraphe
Status: Merged
Merged at revision: 5595
Proposed branch: lp:~numerigraphe/openobject-addons/trunk-stock-available-help
Merge into: lp:openobject-addons
Diff against target: 73 lines (+58/-5)
1 file modified
stock/product.py (+58/-5)
To merge this branch: bzr merge lp:~numerigraphe/openobject-addons/trunk-stock-available-help
Reviewer Review Type Date Requested Status
OpenERP Localization Experts Pending
OpenERP Core Team Pending
Review via email: mp+80680@code.launchpad.net

Description of the change

This branch contains clearer help texts for the real and virtual stock fields.
Lionel.

To post a comment you must log in.
Revision history for this message
Numérigraphe (numerigraphe) wrote :

Asking for review from the l10n experts too because they were appointed to discuss wording issues last year.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/product.py'
2--- stock/product.py 2011-10-10 06:43:37 +0000
3+++ stock/product.py 2011-10-28 15:12:25 +0000
4@@ -327,11 +327,64 @@
5 return res
6
7 _columns = {
8- 'qty_available': fields.function(_product_available, type='float', string='Quantity On Hand', help="Current quantities of products in selected locations or all internal if none have been selected.", multi='qty_available', digits_compute=dp.get_precision('Product UoM')),
9- 'virtual_available': fields.function(_product_available, type='float', string='Quantity Available', help="Forcasted quantity (computed as Quantity On Hand - Outgoing + Incoming) in selected locations or all internal if none have been selected.", multi='qty_available', digits_compute=dp.get_precision('Product UoM')),
10- 'incoming_qty': fields.function(_product_available, type='float', string='Incoming', help="Quantities of products that are planned to arrive in selected locations or all internal if none have been selected.", multi='qty_available', digits_compute=dp.get_precision('Product UoM')),
11- 'outgoing_qty': fields.function(_product_available, type='float', string='Outgoing', help="Quantities of products that are planned to leave in selected locations or all internal if none have been selected.", multi='qty_available', digits_compute=dp.get_precision('Product UoM')),
12- 'track_production': fields.boolean('Track Manufacturing Lots' , help="Forces to specify a Production Lot for all moves containing this product and generated by a Manufacturing Order"),
13+ 'qty_available': fields.function(_product_available, multi='qty_available',
14+ type='float', digits_compute=dp.get_precision('Product UoM'),
15+ string='Quantity On Hand',
16+ help="Current quantity of products.\n"
17+ "In a context with a single Stock Location, this includes "
18+ "goods stored at this Location, or any of its children.\n"
19+ "In a context with a single Warehouse, this includes "
20+ "goods stored in the Stock Location of this Warehouse, or any "
21+ "of its children.\n"
22+ "In a context with a single Shop, this includes goods "
23+ "stored in the Stock Location of the Warehouse of this Shop, "
24+ "or any of its children.\n"
25+ "Otherwise, this includes goods stored in any Stock Location "
26+ "typed as 'internal'."),
27+ 'virtual_available': fields.function(_product_available, multi='qty_available',
28+ type='float', digits_compute=dp.get_precision('Product UoM'),
29+ string='Quantity Available',
30+ help="Forcasted quantity (computed as Quantity On Hand "
31+ "- Outgoing + Incoming)\n"
32+ "In a context with a single Stock Location, this includes "
33+ "goods stored at this Location, or any of its children.\n"
34+ "In a context with a single Warehouse, this includes "
35+ "goods stored in the Stock Location of this Warehouse, or any "
36+ "of its children.\n"
37+ "In a context with a single Shop, this includes goods "
38+ "stored in the Stock Location of the Warehouse of this Shop, "
39+ "or any of its children.\n"
40+ "Otherwise, this includes goods stored in any Stock Location "
41+ "typed as 'internal'."),
42+ 'incoming_qty': fields.function(_product_available, multi='qty_available',
43+ type='float', digits_compute=dp.get_precision('Product UoM'),
44+ string='Incoming',
45+ help="Quantity of products that are planned to arrive.\n"
46+ "In a context with a single Stock Location, this includes "
47+ "goods arriving to this Location, or any of its children.\n"
48+ "In a context with a single Warehouse, this includes "
49+ "goods arriving to the Stock Location of this Warehouse, or "
50+ "any of its children.\n"
51+ "In a context with a single Shop, this includes goods "
52+ "arriving to the Stock Location of the Warehouse of this "
53+ "Shop, or any of its children.\n"
54+ "Otherwise, this includes goods arriving to any Stock "
55+ "Location typed as 'internal'."),
56+ 'outgoing_qty': fields.function(_product_available, multi='qty_available',
57+ type='float', digits_compute=dp.get_precision('Product UoM'),
58+ string='Outgoing',
59+ help="Quantity of products that are planned to leave.\n"
60+ "In a context with a single Stock Location, this includes "
61+ "goods leaving from this Location, or any of its children.\n"
62+ "In a context with a single Warehouse, this includes "
63+ "goods leaving from the Stock Location of this Warehouse, or "
64+ "any of its children.\n"
65+ "In a context with a single Shop, this includes goods "
66+ "leaving from the Stock Location of the Warehouse of this "
67+ "Shop, or any of its children.\n"
68+ "Otherwise, this includes goods leaving from any Stock "
69+ "Location typed as 'internal'."),
70+ 'track_production': fields.boolean('Track Manufacturing Lots', help="Forces to specify a Production Lot for all moves containing this product and generated by a Manufacturing Order"),
71 'track_incoming': fields.boolean('Track Incoming Lots', help="Forces to specify a Production Lot for all moves containing this product and coming from a Supplier Location"),
72 'track_outgoing': fields.boolean('Track Outgoing Lots', help="Forces to specify a Production Lot for all moves containing this product and going to a Customer Location"),
73 'location_id': fields.dummy(string='Location', relation='stock.location', type='many2one'),

Subscribers

People subscribed via source and target branches

to all changes: