Commit Graph
65 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana eaac033426 Add company as product context field
issue9111
review275031002
2020-04-25 09:18:50 +02:00
Cédric Krier edb4c02d9c 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
Cédric Krier 2ea47f1d88 Add employee on document for some states
issue8969
review276621002
2020-04-10 18:53:44 +02:00
Cédric Krier 031c217e27 Prevent assign unknown attributes on Model
by adding __slots__ on proteus classes.

issue6573
review254081002
2019-09-07 23:38:20 +02:00
Cédric Krier 8ad67c0e79 Merge account kind and account type
issue4990
review68401002
2019-03-24 18:00:01 +01:00
Cédric Krier 8cc4fa18d6 Use sale_uom as fallback uom to compute sale price
issue7855
review45821002
2018-12-22 00:16:15 +01:00
Cédric Krier b05adad763 Use invoice payment method in scenario
issue7450
2018-09-02 10:40:32 +02:00
Cédric Krier 5dd275da5d Use task queue to process sale
It adds configured delay for processing sale which provides a grace period.
And it allows to reset to draft confirmed but not processed sale.

issue7460
review49391002
2018-07-27 09:26:03 +02:00
Cédric Krier 7fa45e88c3 Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:52 +02:00
Cédric Krier db33534e22 Remove accounts from products
issue3805
review45111002
2018-06-20 12:09:51 +02:00
Cédric Krier 748a5c077b Invoice sold product instead of shipped product
Backed out changeset 543bea11f640

issue7494
review49431002
2018-06-11 23:13:31 +02:00
Cédric Krier a3cc342354 Set context when testing record in scenario
issue7264
review41991002
2018-03-27 22:14:51 +02:00
Cédric Krier 9e79ed4ae7 Add reporting
issue6948
review37831002
2018-03-26 12:51:47 +02:00
Cédric Krier f55af4ec7a Add wizard to modify sale header after filling lines
issue6972
review38991002
2018-01-08 19:31:23 +01:00
Cédric Krier a41bd1a70d Make description on sale line optional
issue6860
review40831002
2017-12-18 19:05:43 +01:00
Cédric Krier 3d8aa609b8 Invoice shipped product instead of sold product
issue6841
review43601002
2017-11-11 16:09:07 +01:00
Cédric Krier 5720dd9cf0 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
review38891002
2017-10-26 10:14:32 +02:00
Cédric Krier 79842c8ffe 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:21 +02:00
Cédric Krier b9674584da Add test scenario for empty sale
issue6639
review35121002
2017-07-26 23:22:51 +02:00
Cédric Krier 1741a6d5d1 Move cost price to product level instead of template
issue6515
review41321002
2017-07-05 14:51:48 +02:00
Cédric Krier 1d152d9dc5 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
review39311002
2017-04-19 10:29:30 +02:00
Sergi Almacellas Abellana db2ba660c4 Reprocess sale when deleting invoice lines
issue6131
review31821002
2017-01-18 10:18:29 +01:00
Nicolas Évrard ac574c8cff Use activate instead of install for module activation
issue1456
review28931002
2016-10-20 12:54:47 +02:00
Cédric Krier 9c23786d27 Use install_modules tools in scenario
issue5794
2016-08-26 09:59:36 +02:00
Cédric Krier 6634527762 Merge invoice and credit note
issue5225
review18921002
2016-03-20 22:59:26 +01:00
Cédric Krier 9d50598d54 Replace category by categories on Template
issue5320
review23791002
2016-03-19 09:05:29 +01:00
Cédric Krier 8d2d2a1c1f 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:06 +01:00
Nicolas Évrard 44b756862e Add Python3 support
issue3211
2016-03-08 12:08:34 +01:00
Cédric Krier 57d2646969 Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:04:07 +02:00
Cédric Krier f3bb85e5ab Set origin on returned sale
issue4050
review14071002
2015-03-10 23:54:41 +01:00
Cédric Krier 30f959500b 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:59 +01:00
Nicolas Évrard 34f04e0bc1 Report API refactorization
review8831002
2015-01-20 18:49:55 +01:00
Cédric Krier f5581edbe9 Add tax to test scenario 2015-01-02 16:25:50 +01:00
Nicolas Évrard 3bb9fb4111 Add test for access rights of menu and actions
issue4295
review12661002
2015-01-02 16:08:08 +01:00
Cédric Krier 22f5fcba0b Fix most flake8 errors
review8771002
2014-12-02 12:55:52 +01:00
Cédric Krier 0798fc915d Add some test tools to ease scenario writing
review11331002
2014-10-24 10:45:00 +02:00
Sergi Almacellas Abellana 4b7a21631b Add tests for partial deliveries based on invoice and on shipment
issue4003
review9691002
2014-09-10 11:08:05 +02:00
Cédric Krier 5bfbd3c2e3 Use new doctest setup/teardown
issue3627
review7401002
2014-09-04 08:45:31 +02:00
Sergi Almacellas Abellana d3fba5f7ad Add tests for return sale wizard
issue4077
review9521002
2014-07-24 12:34:43 +02:00
Cédric Krier d7cc1443e3 Add test for sale with shipment method 'on invoice'
issue3834
review5011002
2014-04-12 23:36:53 +02:00
Cédric Krier 1be091b153 Add link between stock moves and invoice lines
issue3614
review3181002
2014-03-18 21:13:47 +01:00
Cédric Krier 8b29bad6c9 Fix scenario when switching user
review4261002
2014-03-16 15:44:09 +01:00
Cédric Krier 499ef9f509 Anonymise tests
review2681002
2014-01-16 22:10:46 +01:00
Cédric Krier 9eadad4479 Cleanup tests
review2491002
2014-01-12 20:00:03 +01:00
Cédric Krier 2e425c9dd9 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:20 +01:00
Cédric Krier f761598e32 Use common doctest_dropdb
review2151002
2013-12-18 18:31:19 +01:00
Cédric Krier 04b0169e29 Fix flake8 2013-10-05 12:17:20 +02:00
Nicolas Évrard 5a3668f8d9 Replace reference copying by relate
review932002
2013-09-19 17:34:09 +02:00
Cédric Krier 3c4a07146b Migration to python-sql
review1001002
2013-09-06 22:34:40 +02:00
Cédric Krier 097c8251e2 Add test for creation of invoice line for non-line only once
issue3292
review1043002
2013-09-02 11:20:46 +02:00