Cédric Krier
85bf5ca0d6
Support testNamePatterns for doc tests
...
issue11423
review382481002
2022-04-25 18:11:19 +02:00
Cédric Krier
4cfb3535ee
Replace test setuptools command by unittest discover
...
issue9215
review389851002
2022-04-16 18:30:18 +02:00
Cédric Krier
c2b0b9fd8a
Exclude quantity coming back from production the same day
...
This avoid to have a loop back that keeps the initial cost price of the
production in the history.
issue11265
review386101002
2022-03-06 13:34:18 +01:00
Cédric Krier
223b91a2dd
Follow isort formatting
...
issue10928
2021-12-11 17:58:43 +01:00
David Harper
373e48c1ee
Use Activate modules as test scenario section name
...
issue9395
review291901002
2020-07-09 10:21:06 +01:00
Cédric Krier
885c02bf77
Update FIFO cost price recomputation scenario with lost found location
...
issue9274
review321471002
2020-06-19 00:26:36 +02:00
Cédric Krier
f5b63d4635
Fix flake8 errors and warnings
...
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.
issue9082
review297061002
2020-03-01 12:33:52 +01:00
Cédric Krier
220b918dfa
Store product cost price revision
...
The "Modify Cost Price" wizard create a revision record for each template or
product. The cost price re-computation methods apply those revisions at the
beginning of their date.
The stock accounting move is created and posted when the cost price is modified
by the re-computation.
issue8930
review260751002
2020-01-26 21:10:40 +01:00
Cédric Krier
d2daba9cb8
Update cost of moves when recomputing product cost
...
issue8795
issue7271
review260381003
2020-01-26 15:29:23 +01:00
Cédric Krier
e9d3ca720f
Add test for FIFO cost price with no input
...
issue8699
review252351002
2019-10-24 18:58:34 +02:00
Cédric Krier
487f0b734e
Include production moves in FIFO computation
...
issue8659
review264211002
2019-10-11 11:44:56 +02:00
Cédric Krier
b7d608d1c1
Add test scenario with non default UoM
...
issue7918
review251121002
2019-03-22 11:18:05 +01:00
Cédric Krier
0d95669f8c
Improve performance of cost price computation
...
- Return average cost price
- Compute average cost price with the current move
issue6626
review42501002
2017-08-02 23:04:45 +02:00
Cédric Krier
3827d940d0
Move cost price to product level instead of template
...
issue6515
review41321002
2017-07-05 14:51:46 +02:00
Nicolas Évrard
02e2ff8b7b
Use activate instead of install for module activation
...
issue1456
review28931002
2016-10-20 12:54:44 +02:00
Xavier Codinas
1c5e957bf0
Fix inconsistent leading whitespace in scenario
...
The problem was introduced in changeset b254ed9ff50d
issue5833
review33271002
2016-08-26 11:36:10 +02:00
Cédric Krier
c0a07f5ea4
Use install_modules tools in scenario
...
issue5794
2016-08-26 09:59:17 +02:00
Cédric Krier
64872e86a5
Use converted tests converted by 2to3
...
distutils import tests module from the source code, so we must force it to use
the test suite from the absolute path because it will be the converted on in
case of 2to3 otherwise we fall-back to the relative module.
issue3211
2016-03-11 21:56:53 +01:00
Jonathan Levy
21c654800b
Add Python3 support
...
issue3211
review17861002
2016-02-27 15:22:10 +01:00
Cédric Krier
a69926956b
Rename ir.module.module* into ir.module*
...
issue4764
review7171002
2015-05-28 21:03:54 +02:00
Cédric Krier
8cde758e86
Add check for default model access
...
When group access exists, a default model access should be defined otherwise
all access are given to non group users.
issue4485
review5941002
2015-01-27 18:13:45 +01:00
Nicolas Évrard
db2e11d550
Add test for access rights of menu and actions
...
issue4295
review12661002
2015-01-02 16:08:05 +01:00
Cédric Krier
8c95a3bfb5
Fix most flake8 errors
...
review8771002
2014-12-02 12:55:33 +01:00
Cédric Krier
07fb7e396e
Add some test tools to ease scenario writing
...
review11331002
2014-10-24 10:44:48 +02:00
Cédric Krier
af6c990268
Use new doctest setup/teardown
...
issue3627
review7401002
2014-09-04 08:45:18 +02:00
Cédric Krier
629d1bd34d
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
review12441002
2014-08-29 16:24:28 +02:00
Cédric Krier
0dc2dfc23b
Drop support of Python 2.6
...
review2691002
2014-01-31 00:03:50 +01:00
Cédric Krier
f946225e2c
Cleanup tests
...
review2491002
2014-01-12 19:59:52 +01:00
Cédric Krier
05f15884b6
Use common doctest_dropdb
...
review2151002
2013-12-18 18:30:07 +01:00
Cédric Krier
e0dfed5f4c
Fix flake8
2013-10-05 12:17:09 +02:00
Giedrius Slavinskas
a03e40af8b
Add test scenario for fifo moves
...
issue3138
review781002
2013-04-12 16:21:06 +03:00
Cédric Krier
5b2d98d4c3
Fix pep8 and pyflakes
2012-04-03 20:07:21 +02:00
Nicolas Évrard
830040cca7
Use relative imports
2011-12-14 17:04:27 +01:00
Cédric Krier
65dd846757
Add test for depends
2011-08-04 16:59:28 +02:00