Commit Graph
54 Commits
Author SHA1 Message Date
Cédric Krier bc0ce07a4c Support testNamePatterns for doc tests
issue11423
review382481002
2022-04-25 18:11:20 +02:00
Cédric Krier f744aa35c7 Replace test setuptools command by unittest discover
issue9215
review389851002
2022-04-16 18:30:19 +02:00
Cédric Krier 89367c74db Recompute cost price of drop shipment
Since issue9962 the unit price of the supplier move can be updated later so we
must recompute the cost price of the customer moves.

issue11295
review364951003
2022-03-26 12:15:13 +01:00
Cédric Krier 0eef086936 Follow isort formatting
issue10928
2021-12-11 17:58:44 +01:00
Adrià Tarroja Caubet 0a12967e1e Process sales on ship
This ensures partial shipments are properly linked to sales.

issue10430
review361921002
2021-10-22 10:15:48 +02:00
Cédric Krier 1c0fe902c9 Check rule only if _check_access is set and enforce companies rule
issue4080
review343891009
2021-04-10 23:46:24 +02:00
Cédric Krier b04ebe6243 Remove tree structure from company
issue10163
review332181002
2021-03-18 23:04:18 +01:00
Cédric Krier 857145a553 Add test on context of company multivalue target fields
issue10067
review333851026
2021-03-05 15:49:20 +01:00
Cédric Krier 4a01d57dc6 Add generic test for check erase party
issue9895
review324571002
2020-12-05 11:53:49 +01:00
Maxime Richez 98ac505592 Add picked step to customer shipment workflow
issue9634
review329071002
2020-10-12 23:19:54 +02:00
David Harper 1a4ae1bef1 Use Activate modules as test scenario section name
issue9395
review291901002
2020-07-09 10:21:07 +01:00
David Harper 2f3a5a7ac9 Rename purchase request state from cancel to cancelled
issue8927
review301701003
2020-06-06 10:02:09 +01:00
Cédric Krier 0073bc7d0a 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:54 +01:00
Cédric Krier 1c1e7e0470 Update scenario to use template instead of product on product supplier
issue6799
2019-03-15 16:33:08 +01:00
Cédric Krier ac28bb25fd Remove unnecessary call to process
process button is restricted to administrator groups.

issue8113
2019-03-08 21:32:03 +01:00
Cédric Krier e8bd71c040 Use invoice payment method in scenario
issue7450
2018-09-02 10:40:32 +02:00
Cédric Krier 594cb3880b Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:55 +02:00
Cédric Krier 4a346ebac1 Remove accounts from products
issue3805
review45111002
2018-06-20 12:09:53 +02:00
Cédric Krier 6d40daa082 Correctly convert unit price to set as cost price
The unit price of the supplier move is in the currency of the purchase when
the cost price must be in the company currency.

issue7243
review44901002
2018-04-13 18:49:19 +02:00
Cédric Krier 2a1497d40f Fix computation of cost price and always update customer move
The cost computation was broken by changeset 471ad47d4129.

issue7282
review44241002
2018-03-29 20:23:34 +02:00
Cédric Krier 8c9feb4ed3 Create drop shipment depending on the shipment method
The purchase request may be created later so not having one does not mean that
no drop shipment will be created.

issue7200
review44111002
2018-03-22 14:54:31 +01:00
Nicolas Évrard 1b1e5558f9 Handle remaining qty when synchronizing supplier and customer moves
issue6833
review39781002
2018-03-13 14:14:18 +01:00
Cédric Krier 26be4016ad Add set_user tools for test scenario
When changing the user of proteus, the context should be reloaded.

issue6652
review42551002
2017-08-02 19:38:23 +02:00
Cédric Krier 0815f636bf Move cost price to product level instead of template
issue6515
review41321002
2017-07-05 14:51:49 +02:00
Cédric Krier 9148248f31 Update purchase request type in scenario
issue6153
review25961002
2017-01-10 11:48:35 +01:00
Nicolas Évrard 6b39974097 Use activate instead of install for module activation
issue1456
review28931002
2016-10-20 12:54:50 +02:00
Cédric Krier 8a52ae498e Use install_modules tools in scenario
issue5794
2016-08-26 09:59:49 +02:00
Cédric Krier 3c78f54f7a Replace category by categories on Template
issue5320
review23791002
2016-03-19 09:05:40 +01:00
Cédric Krier 33f139d818 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:57:20 +01:00
Cédric Krier 21ecb79d61 Add Python3 support
issue3211
2016-03-10 00:36:31 +01:00
Cédric Krier 3a67c3bcb7 Rename delivery_time into lead_time
issue5275
2016-02-06 23:53:54 +01:00
Nicolas Évrard 54a9ebe86a Do not cancel sale moves when cancelling purchase
issue5107
review15811002
2015-11-17 17:33:21 -03:00
Cédric Krier cdf71ba8bd No more need to set cost price on move
issue5017
review20441003
2015-10-08 19:46:51 +02:00
Cédric Krier 6aaf01553d Remove trailing space 2015-10-08 19:44:55 +02:00
Nicolas Évrard b7887bdd87 Split moves into supplier and customer moves
issue4371
review15641002
2015-10-04 17:55:39 +02:00
Cédric Krier 6571aa5dee Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:04:18 +02:00
Cédric Krier 19f9ae7c3a 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:14:08 +01:00
Nicolas Évrard d89dda61e1 Add test for access rights of menu and actions
issue4295
review12661002
2015-01-02 16:08:09 +01:00
Cédric Krier 468c5602aa Fix most flake8 errors
review8771002
2014-12-02 12:56:03 +01:00
Cédric Krier 1d31045778 Add some test tools to ease scenario writing
review11331002
2014-10-24 10:45:08 +02:00
Nicolas Évrard 88a160c7aa Propagate exception handling from sale to purchase
issue4071
review5491002
2014-09-19 11:41:41 +02:00
Cédric Krier 50b6e864f4 Remove ask for payment term in create purchase wizard
issue4176
2014-09-18 19:09:30 +02:00
Cédric Krier fc08361b88 Missing set pool test for scenario 2014-09-10 14:48:49 +02:00
Cédric Krier a0d25f5a3b Use new doctest setup/teardown
issue3627
review7401002
2014-09-04 08:45:39 +02:00
Nicolas Évrard fb41828ca0 Split confirmed state into confirmed and processing
issue3874
review7261002
2014-07-02 19:04:59 +02:00
Nicolas Évrard 6ddf53c540 Add tests for different shipment workflows
issue3763
review4401002
2014-03-28 17:10:33 +01:00
Cédric Krier 12eec22a4c Anonymise tests
review2681002
2014-01-16 22:10:52 +01:00
Cédric Krier 0a3d59ad7f Cleanup tests
review2491002
2014-01-12 20:00:10 +01:00
Cédric Krier 9daa688b8c Use common doctest_dropdb
review2151002
2013-12-18 18:32:07 +01:00
Cédric Krier 56966b7acf Fix flake8 2013-10-05 12:17:25 +02:00