Commit Graph
53 Commits
Author SHA1 Message Date
Nicolas Évrard c9087d154c Add test for access rights of menu and actions
issue4295
review12661002
2015-01-02 16:08:09 +01:00
Cédric Krier 994bd8a103 Fix most flake8 errors
review8771002
2014-12-02 12:56:04 +01:00
Cédric Krier 2d5badf9be Add some test tools to ease scenario writing
review11331002
2014-10-24 10:45:10 +02:00
Cédric Krier 91786aa76d Use new doctest setup/teardown
issue3627
review7401002
2014-09-04 08:45:40 +02:00
Cédric Krier 47a2190ede Compute cost price one move at a time
As _update_product_cost_price uses product quantity, this quantity must be
recomputed after each move in case some are for the same products.

issue4039
review11421002
2014-08-29 16:23:10 +02:00
Sergi Almacellas Abellana 38eadbc7e9 Skip zero quantities when prefiling an inventory
issue3976
review6391002
2014-07-03 18:49:59 +02:00
Sergi Almacellas Abellana c0545376c4 Always succeed assignation from lost and found on internal shipments
review9401003
issue3590
2014-05-28 19:52:58 +02:00
Cédric Krier 9a2cc36ce9 Add test for product_by_location with stock_skip_warehouse and no product_ids
issue3843
review5171002
2014-04-18 19:30:49 +02:00
Cédric Krier af53a08c3d Test must not rely on being run all the same day
issue3769
review4461002
2014-03-21 23:42:15 +01:00
Cédric Krier 634913f549 Add warning for external move without origin
issue3677
review3521002
2014-03-10 20:16:00 +01:00
Cédric Krier 7fac623f85 Drop support of Python 2.6
review2691002
2014-01-31 00:04:20 +01:00
Sergi Almacellas Abellana 0fd9f7ebc7 Allow to define the effective date of shipments
issue3579
review2651002
2014-01-30 19:19:49 +01:00
Cédric Krier 412410aa1b Anonymise tests
review2681002
2014-01-16 22:10:53 +01:00
Cédric Krier d0597aab7f Cleanup tests
review2491002
2014-01-12 20:00:12 +01:00
Cédric Krier 9da5c5b86b Use common doctest_dropdb
review2151002
2013-12-18 18:32:22 +01:00
Guillem Barba 38ab876749 New methods on stock.move to compute quantities more modular
* Split products_by_location into two methods on Move:
  compute_quantities_query and compute_quantities
* Use new methods to compute quantities in StockMixin._search_quantity()

issue3201
review971002
2013-12-17 16:22:36 +01:00
Cédric Krier 2b78c34768 Use origin for inventory move
By using the origin, it is possible to create all the move with one create
call.

issue3512
review1811002
2013-11-28 23:21:45 +01:00
Cédric Krier 68eb13ed88 Fix flake8 2013-10-05 12:17:26 +02:00
Cédric Krier 081924b014 Add unittest for infinite loop when setting internal_quantity
issue3332
review1109002
2013-10-03 21:19:25 +02:00
Guillem Barba 0096fed655 Add Mixin class with helper to setup stock quantity fields
Add StockMixin class in move.py file with helper functions to be used in getter
and searcher methods of quantity fields.
Reimplemented getter and searcher of quantity/forecast_quantity fields of
Product to use these helper functions.
Add test over product's quantity fields.

issue3279
review963003
2013-09-09 14:11:53 +02:00
Cédric Krier 47b3140659 Remove skip_zero on products_by_location in period test 2013-06-24 00:22:52 +02:00
Cédric Krier 77c5845141 Extend Lot Management
Allow to customize move creation of Inventory
Allow to customize unique constraint on Inventory
Allow specific grouping Period Cache
Add grouping on products_by_location and assign_try

review845002
2013-06-21 23:24:17 +02:00
Cédric Krier cc8990d5c5 Add test for date selection when using period in products_by_location
review897003
2013-06-06 20:43:05 +02:00
Cédric Krier 65cfc60c14 Remove _inherits
review670002
2013-03-20 22:51:12 +01:00
Cédric Krier c4fa3621f0 Add scenario for cost price computation
review703002
2013-03-06 13:09:44 +01:00
Cédric Krier a81cd74495 Fix flake8 2013-02-24 16:18:17 +01:00
Albert Cervera i Areny 37b61a3e90 Use a list of dictionaries in create().
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier 75bbef0077 Use Workflow for Stock Move
review600002
2012-12-27 21:53:07 +01:00
Cédric Krier e35e6002d8 Add unittest for products_by_location with_childs
review558002
2012-10-15 23:17:24 +02:00
Cédric Krier c5f83d3810 Active Record 2012-09-24 22:18:17 +02:00
Cédric Krier bd7f66d7db Fix pep8 and pyflakes 2012-04-03 20:07:43 +02:00
Cédric Krier 622375010e Simplify workflow engine
review256001
2012-03-25 00:18:19 +01:00
Cédric Krier a1066be1f7 merge 2012-03-23 19:00:36 +01:00
Nicolas Évrard 200bd670e6 Integer, Numeric and Float allow None as value
NULL value is None and not False

issue2022
review237004
2012-03-23 18:38:54 +01:00
Cédric Krier 195f16ce9b Remove trailing space 2012-03-22 16:34:19 +01:00
Cédric Krier ee6e3abccc New product types: Goods, Assets and Service
review260001
2012-03-16 12:42:00 +01:00
Cédric Krier a3bad88db8 Remove trailing space 2012-03-02 19:05:13 +01:00
Sharoon Thomas 843643668e Fix corruption of outgoing_moves in packed state of stock.shipment.out
The `move_obj.write` changes the value of `quantity` in the move, but the
removed_qty computation used `move.quantity` from the browse record. The
browse record gets the updated value and not the old value from
browse_record cache. This fix just moves the computation before the
move_obj.write and includes a scenario to confirm the behavior.

issue2426
review254001
2012-03-02 10:46:08 -05:00
Cédric Krier a16c147f93 Re-add rounding of quantities in products_by_location
Wrongly removed in changeset da0d4ec97240

issue2380
review222001
2012-01-27 20:17:26 +01:00
Nicolas Évrard 1ad29eb1cf Use relative imports 2011-12-14 17:04:27 +01:00
Cédric Krier b301056ff2 Fix Transaction.start to use keyword argument for context 2011-11-28 14:46:29 +01:00
Nicolas Évrard f6b35baa82 fix pyflake errors
review164008
2011-11-02 16:13:35 +01:00
Cédric Krier 183a3e7bbf Add test for depends 2011-08-04 16:57:42 +02: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 c5a6a162f0 Add missing with_statement from __future__ 2011-04-10 13:19:28 +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 b6aabc9321 Fix test_view for issue1651 2010-08-27 12:18:27 +02:00
Cédric Krier d89c35dc10 Add test_suite in setup.py 2010-03-12 17:49:41 +01:00
Cédric Krier ffa5a898a9 New unittest design 2010-03-04 14:13:04 +01:00
Cédric Krier cc93deacc9 Guidelines 2009-08-28 16:24:08 +02:00