Cédric Krier
51396d172f
Re-add rounding of quantities in products_by_location
...
Wrongly removed in changeset da0d4ec97240
issue2380
review222001
(transplanted from 07b42999efdbc394489424c58a1655637247a3a1)
2012-01-27 20:17:26 +01:00
Cédric Krier
c4fc2a95ba
Remove support of Python2.5 and fix py3 warnings
2011-07-12 00:18:06 +02:00
Cédric Krier
8eeb3c949f
Change Pool into a Singleton
2011-07-03 13:19:14 +02:00
Cédric Krier
6a72f2dfca
Use list of ids for browse instead of set
2011-06-15 12:03:16 +02:00
Cédric Krier
d741548abc
Backed out changeset 58be4bdca2af
2011-06-15 12:01:44 +02:00
Cédric Krier
22bd98c502
Use list of ids for browse instead of set
2011-05-30 13:38:49 +02:00
Cédric Krier
82534cf54e
Improve stock quantity computation with internal_quantity and periods
2011-04-09 12:39:31 +02:00
Cédric Krier
a445ac90e1
Add missing super call in Product and Location to view_header_get for issue1695
2010-09-19 18:39:29 +02:00
Cédric Krier
8f69bf7fc9
Use safe_eval instead of eval for issue1640
2010-08-31 19:11:48 +02:00
Cédric Krier
cd62ea725f
Update for new Transaction
2010-08-19 22:22:44 +02:00
Cédric Krier
cde2f4668a
Fix _search_quantity_eval_domain as domain is no more a list for issue1525
2010-04-18 19:25:47 +02:00
Cédric Krier
6c2908774a
New interface for Function/Property fields
2010-03-11 16:54:32 +01:00
Bertrand Chenal
e0db9d42e6
Optimisation for stock quantities computation:
...
- Avoid to sort locations
- Use UNION ALL instead of UNION
2010-02-19 11:48:56 +01:00
Cédric Krier
8a26b11dd9
Use get_id of ir.model.data
2010-01-21 12:10:01 +01:00
Cédric Krier
bfab410ce8
Use PySON
2010-01-20 11:04:28 +01:00
Cédric Krier
9be26709fb
Compute infinite date end like a future date for issue1259
2009-10-28 09:18:00 +01:00
Cédric Krier
e2fb7aa69c
Use stock_assign to compute product by location with future date
2009-10-28 09:17:16 +01:00
Cédric Krier
37f803d4b3
Fix search_quantity to compute product_by_location like get_quantity
2009-10-27 10:19:07 +01:00
Cédric Krier
8cd9edde5d
Test stock_date_end in context before comparing with today
2009-10-27 10:17:57 +01:00
Cédric Krier
33f9b26ac2
Make skip_zero respect product_ids if set for issue1218
2009-10-10 12:54:01 +02:00
Cédric Krier
e48dddab83
merge
2009-09-25 09:05:58 +02:00
Ian Wilson
c1d740411d
Return dictionary when given no locations for issue1190.
2009-09-24 23:58:33 -07:00
Bertrand Chenal
703cd5131d
Re-apply chunck 6f0af488dd35
2009-09-23 17:18:47 +02:00
Bertrand Chenal
47881f5613
Ignore inactives product in product_by_locations
2009-09-23 16:41:42 +02:00
Cédric Krier
87e3f5eadf
Don't use global context as default value of act_window for issue1183
2009-09-21 10:47:38 +02:00
Cédric Krier
494ae4fa09
Use faster join implementation
2009-08-26 15:57:44 +02:00
Bertrand Chenal
ff442c5d0d
Added constraint on default uom on product. Fix issue1063.
2009-05-26 16:23:20 +02:00
Cédric Krier
103e78f72b
Don't add move_query to clause if empty for issue958
2009-04-09 11:31:27 +02:00
Cédric Krier
97d7c5850d
Remove OSV and WizardOSV
2009-02-28 17:04:50 +01:00
Cédric Krier
348d134cb7
Fix for new view_header_get must return string for issue766
2009-02-02 13:12:56 +01:00
Cédric Krier
a33d2d879d
Move assign_try and pick_product from product.product to stock.move
...
Fix assign_try to work on all child locations
Use copy in assign_try to be more generic
2009-01-20 01:04:28 +01:00
Bertrand Chenal
b949087200
Added stock_skip_warehouse keyword on products_by_location
2009-01-15 03:41:25 +01:00
Bertrand Chenal
060672fce3
Improved products_by_location docstring
2009-01-11 20:52:55 +01:00
Cédric Krier
47ef607b6c
Fix typo in pick_product consumable for issue736
2009-01-08 14:45:17 +01:00
Cédric Krier
7b43bf6626
Use better identation for complex sql
2008-12-19 00:04:02 +01:00
Bertrand Chenal
73282b799a
Improve indentation for sql queries
2008-12-18 23:22:32 +01:00
Bertrand Chenal
7ab3b82e6f
Fix null date handling
2008-12-18 20:12:47 +01:00
Bertrand Chenal
62dd82a73f
Fix quantities computation, added missing parentheses
2008-12-18 16:02:27 +01:00
Bertrand Chenal
718aa537a9
Added stock_destinations keyword on products_by_location
2008-11-21 15:03:29 +01:00
Bertrand Chenal
343ad56388
Fix produt assignation:
...
* Ignore non-draft moves
* Avoid to create moves with quantity smaller than the product rounding
* Avoid to round quantities for internal computations
* Update correctly product by location when creating moves
2008-11-13 17:07:30 +01:00
Cédric Krier
4a013fba9e
Add contest to domain_get call
2008-11-06 15:14:55 +01:00
Cédric Krier
2b74c57c1d
Improve docstring of products_by_location
2008-11-05 01:14:47 +01:00
Cédric Krier
1e46a22b50
Simplify products_by_location and add context key for forecast
...
Quantity on product and location depends of the stock_date_end
2008-11-03 18:48:19 +01:00
Cédric Krier
2b52dda423
Round quantities only once
2008-11-03 15:41:04 +01:00
Cédric Krier
ccb7ee7eda
Fix typo
2008-10-31 14:14:55 +01:00
Cédric Krier
6ffb9684bc
Add quantity and forecast_quantity on product.template
2008-10-31 14:14:36 +01:00
Bertrand Chenal
63dd30f7a9
Product assignation is absolute (future assigned move are also computed)
2008-10-30 00:07:29 +01:00
Bertrand Chenal
346cb7915b
Fix for assignation, compute also assing moves
2008-10-29 01:04:05 +01:00
Bertrand Chenal
4b7c6994ee
Fix for stock_date_start computation
2008-10-29 01:03:10 +01:00
Bertrand Chenal
2958f87c36
Use a more straightforward way to check stock_date_end quantity field
...
and fix it on location
2008-10-29 01:00:01 +01:00