Commit Graph
67 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana f1bb47f13b Add test for product suppliers copy
issue9017
review315221002
2020-05-01 20:32:01 +02:00
Cédric Krier db5b621734 Add actual quantity on line
The actual quantity is computed once the order is processing. We take the
biggest quantity between the shipped and invoiced and ignore the cancelled.

issue9191
review319091002
2020-04-14 09:27:53 +02:00
Sergi Almacellas Abellana 9bc05a067e Add missing view and test scenario files
issue9049
2020-04-12 09:16:22 +02:00
Albert Cunillera Benet 0c560c4e8a Add return wizard
issue9049
review256631002
2020-04-12 09:15:06 +02:00
Cédric Krier 976ff7e1dc Add employee on document for some states
issue8969
review276621002
2020-04-10 18:53:44 +02:00
Cédric Krier ec2b29a794 Prevent assign unknown attributes on Model
by adding __slots__ on proteus classes.

issue6573
review254081002
2019-09-07 23:38:20 +02:00
Luciano Rossi (lukio) 5ae41734ae Add customer code for suppliers at party
Added a field customer_code into a new tab Supplier at Party model.
Also, added the customer_code at the purchase report.

issue5812
review34361002
2019-08-21 22:51:36 +02:00
Cédric Krier 88f4403b2a Merge account kind and account type
issue4990
review68401002
2019-03-24 18:00:01 +01:00
Cédric Krier 21ed59ded1 Allow to define product supplier on variants
issue6799
review66551002
2019-03-15 11:30:21 +01:00
Cédric Krier f33e9ff4e5 Use invoice payment method in scenario
issue7450
2018-09-02 10:40:32 +02:00
Cédric Krier 98b86f6a5e Use task queue to process purchase
It adds configured delay for processing purchase which provides a grace period.
And it allows to reset to draft confirmed but not processed purchase.

issue7463
review49401002
2018-07-27 09:27:49 +02:00
Cédric Krier 69bc232aad Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:51 +02:00
Cédric Krier 56d311ae57 Remove accounts from products
issue3805
review45111002
2018-06-20 12:09:50 +02:00
Cédric Krier 9bdd9eec06 Invoice purchased product instead of received product
Backed out changeset 507b86438625

issue7494
review46541002
2018-06-11 23:12:40 +02:00
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