Commit Graph
96 Commits
Author SHA1 Message Date
Cédric Krier 5dff376497 Fix date selection when using period in products_by_location
effective_date and planned_date could be both NULL so they must be considered
as date.max to be included.

review897003
(transplanted from 880fcffdafa24b42dc163309b6b24eb3ad5528e4)
2013-06-06 20:41:29 +02:00
Cédric Krier 1d6fbfc797 Use root to search on period and search on closed periods
products_by_location can be called by users without read access to period.
And only closed period has cache.

review875002
(transplanted from 09d5333339c1d345dae85e5f3180d8a240bf5848)
2013-05-22 19:18:43 +02:00
Cédric Krier 491d7e46e0 Include NULL planned_date with datetime.date.max
review790002
(transplanted from 5b73bf2ce14b5e4c94d71b5db0b3d1f11c339a9d)
2013-04-16 15:31:10 +02:00
Cédric Krier c4aab47e5e Fix parent quantities computation
issue2694
review558002
(transplanted from dc80f77b1c9448a40031a1bbd7c5111d7953da72)
2012-10-15 23:16:29 +02:00
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