Commit Graph
53 Commits
Author SHA1 Message Date
Cédric Krier b15f58579d Compare quantity as absolute value and enforce positive quantities
issue7159
review44041002
2018-02-28 18:58:09 +01:00
Sergi Almacellas Abellana d64a73479a Link backorder moves with existing invoices lines on order shipment method
issue7022
review36921002
2018-02-15 10:46:56 +01:00
Cédric Krier 31793c7bbe Add wizard to modify purchase header after filling lines
issue6972
review37891002
2018-01-08 19:31:54 +01:00
Cédric Krier ed5e78609a Make description on purchase line optional
issue6860
review43781003
2017-12-18 19:03:16 +01:00
Cédric Krier 13b4939813 Invoice received product instead of purchased product
issue6841
review40751002
2017-11-11 16:09:39 +01:00
Cédric Krier 06212e1a6d Use always admin in sale scenario
With changeset c182396e788f, it became cumbersome to tests using different
users because the Model definition may be different per user.

issue6877
review43641002
2017-10-26 10:15:01 +02:00
Cédric Krier 58e7424acc 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:20 +02:00
Cédric Krier a9ee416fa7 Add test scenario for empty purchase
issue6639
review37571002
2017-07-26 23:23:58 +02:00
Cédric Krier b7ec44f5f8 Move cost price to product level instead of template
issue6515
review41321002
2017-07-05 14:51:47 +02:00
Cédric Krier 0833ef7367 Fix get_move_done computation for returns
The quantity of the line may be negative, so the absolute value must be used.
The scenario update does not catch this case because it is a complex case that
can not be achieved with the default methods. But it adds various states
checks.

issue6440
review34911002
2017-04-19 10:30:11 +02:00
Sergi Almacellas Abellana e7bc5cfcff Reprocess purchase when deleting invoice lines
issue6131
review34571002
2017-01-18 10:19:36 +01:00
Nicolas Évrard 5d8669ec71 Use activate instead of install for module activation
issue1456
review28931002
2016-10-20 12:54:47 +02:00
Cédric Krier ff578457bf Use install_modules tools in scenario
issue5794
2016-08-26 09:59:31 +02:00
Cédric Krier df3e550f6a Merge invoice and credit note
issue5225
review18921002
2016-03-20 22:59:22 +01:00
Cédric Krier e66e98cd64 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:03 +01:00
Nicolas Évrard 3693b96042 Add Python3 support
issue3211
2016-03-04 00:34:21 +01:00
Cédric Krier e014ff60b5 Make TestCase create and drop its database
and use with_transaction decorator.

issue5263
review20711002
2016-02-06 19:13:01 +01:00
Cédric Krier 1edff138a3 Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:04:04 +02:00
Cédric Krier c794885c2f 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:55 +01:00
Cédric Krier e2dded4c98 Add tox and drone
issue4431
2015-01-25 18:37:39 +01:00
Nicolas Évrard 1ac71d4b80 Report API refactorization
review8831002
2015-01-20 18:49:55 +01:00
Cédric Krier 1620d5dfe2 Add tax to test scenario 2015-01-02 16:27:47 +01:00
Nicolas Évrard 123d780d2a Add test for access rights of menu and actions
issue4295
review12661002
2015-01-02 16:08:08 +01:00
Cédric Krier 640950c212 Fix most flake8 errors
review8771002
2014-12-02 12:55:47 +01:00
Cédric Krier e63df041d9 Add some test tools to ease scenario writing
review11331002
2014-10-24 10:44:57 +02:00
Sergi Almacellas Abellana 6334322a0a Add test for invoice based on shipment with partial delivery
issue4003
review5581002
2014-09-10 18:33:10 +02:00
Sergi Almacellas Abellana 45745039a9 Backed out changeset 3544cd44c4d7 2014-09-10 18:29:55 +02:00
Sergi Almacellas Abellana c71a451026 Add test for invoice based on shipment with partial delivery
issue4003
review5581002
2014-09-10 11:10:02 +02:00
Cédric Krier 854086236a Use new doctest setup/teardown
issue3627
review7401002
2014-09-04 08:45:27 +02:00
Nicolas Évrard 094e275a09 Split confirmed state into confirmed and processing
issue3874
review7261002
2014-07-02 19:04:58 +02:00
Cédric Krier 30742297fe Apply the common pattern matching to purchase price
issue3867
review5271002
2014-05-09 23:18:23 +02:00
Cédric Krier fe98d3ff39 Add link between stock moves and invoice lines
issue3614
review3181002
2014-03-18 21:13:18 +01:00
Cédric Krier a0f35cb2fb Fix scenario when switching user
review4261002
2014-03-16 15:42:14 +01:00
Cédric Krier 1aefda1b0d Anonymise tests
review2681002
2014-01-16 22:10:43 +01:00
Cédric Krier 2abf812ff6 Cleanup tests
review2491002
2014-01-12 20:00:01 +01:00
Cédric Krier 4d10a98509 Fix computation of done state for purchase and sale
Allow to go to done state when one sub-state is none and nothing was generated
for it.

issue3550
review2221002
2014-01-04 19:39:48 +01:00
Cédric Krier deee8325f7 Use common doctest_dropdb
review2151002
2013-12-18 18:30:41 +01:00
Cédric Krier efb5afb9ef Fix flake8 2013-10-05 12:17:17 +02:00
Nicolas Évrard b7d05b3175 Replace reference copying by relate
review932002
2013-09-19 17:33:53 +02:00
Cédric Krier b2012b2237 Migration to python-sql
review1001002
2013-09-06 22:34:36 +02:00
Cédric Krier 6b382bfc9a Add test for creation of invoice line for non-line only once
issue3292
review1043003
2013-09-02 11:21:45 +02:00
Cédric Krier 79373dc33a Add missing process call on purchase when invoice's posted
review905002
2013-06-06 20:37:38 +02:00
Cédric Krier 64c5bdb64e Remove _inherits
review670002
2013-03-20 22:51:02 +01:00
Cédric Krier 26e00b9f83 Use different users in purchase scenario
review669004
2013-03-06 17:25:12 +01:00
Cédric Krier 65f0af5ff6 Update to new invoice states
review583002
2012-12-23 22:30:27 +01:00
Cédric Krier 15d3ba7fb2 Managage negative amounts in purchase
review354001
2012-09-30 21:19:45 +02:00
Cédric Krier 70144738a6 Fix pep8 and pyflakes 2012-04-03 20:07:31 +02:00
Nicolas Évrard 99560b84cc Use relative imports 2011-12-14 17:04:12 +01:00
Cédric Krier baa3c1cd01 Add test for depends 2011-08-04 16:57:38 +02:00
Cédric Krier b671c45b33 Fix test_view for issue1651 2010-08-27 12:18:24 +02:00