Commit Graph
66 Commits
Author SHA1 Message Date
Cédric Krier 3668616183 Process reconciled invoice when posted
A supplier invoice can be paid before being posted. So the workflow should
continue if it is reconciled.

issue7999
review279231002
2019-04-15 22:12:03 +02:00
Cédric Krier e95cf44c2c Add group lines wizard
issue8213
review275091002
2019-04-12 19:43:53 +02:00
Cédric Krier 25f0f7ed1a Show reconciliations lines as payment lines
Once the invoice is paid, we can show the reconciliation lines instead of the
payment lines.

issue8157
review70581002
2019-03-08 23:59:16 +01:00
Cédric Krier 674bd59c1e Allow to run test scenario on 31st December
The scenario pays an invoice "tomorrow" so on 31st December the move is posted
on the next fiscal year.

issue7959
review68411002
2018-12-31 20:19:04 +01:00
Cédric Krier 3a02c0f65f Set cancel state when refund with credit note
and clear partial payments.

Other modules may trigger events base on the paid or cancel state of the
invoice. So we should allow the user to not trigger the paid event when he
cancel an invoice with a credit note.

issue7682
issue4775
review48581002
2018-10-15 22:56:01 +02:00
Cédric Krier 40d4113031 Add scenario about invoice in alternate currency with lower rate
issue7192
review52471002
2018-09-17 17:51:43 +02:00
Cédric Krier 06bf2b6969 Manage renew of fiscalyear with invoice sequences
The invoice sequences must be copied with custom code because the constraint
on the period against the fiscalyear invalidate the copy.

issue7042
review51481002
2018-09-01 16:51:38 +02:00
Sergi Almacellas Abellana ea724b8a22 Add invoice payment method
issue7450
review45561002
2018-09-01 11:21:06 +02:00
Cédric Krier a43da122fb Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:42 +02:00
Cédric Krier 3f1ea14e95 Remove accounts from products
issue3805
review45111002
2018-06-20 12:09:41 +02:00
Cédric Krier d56a461bfa Remove tax code from invoice tax
issue6013
review41941002
2018-03-25 23:34:44 +02:00
Cédric Krier 7b14095c22 Improve payment management
* Ensure payments on Invoice does not exceed invoice amount
* Add method to add payments on Invoice
* Update scenario to set period in context for Tax Code sum

issue7139
review44011002
2018-03-24 15:29:47 +01:00
Cédric Krier 6d8dc227b7 Change reconciled from Boolean to Date
It gives more information to show the date the invoice was paid.

issue7014
review43831002
2017-12-20 19:25:26 +01:00
Sergi Almacellas Abellana 92012f7760 Don't create empty delta on invoice scenario
issue6258
review37711002
2017-10-02 10:58:39 +02:00
Cédric Krier 8cda3affd7 Move cost price to product level instead of template
issue6515
review41321002
2017-07-05 14:51:41 +02:00
Sergi Almacellas Abellana 90eb3b7975 Add test for credit invoies with non line lines 2017-05-17 16:46:59 +02:00
Sergi Almacellas Abellana 012d690795 Use Match pattern for invoice sequences
issue6212
review31991002
2017-03-30 09:45:15 +02:00
Cédric Krier c5f9b34082 Add test move on supplier invoice scenario
issue6185
review32981002
2017-01-13 20:13:52 +01:00
Sergi Almacellas Abellana 526fb2cbf7 Add test for invoice payment in alternate currency with change difference 2016-11-24 16:43:56 +01:00
Sergi Almacellas Abellana 02a252d84b Skip posted and paid invoices on set_number
When unreconciling the payment of an invoice without tax_identifier the
set_number function is called and it tries to write on tax_identifier field,
which is not allowed to be done because of check_modify.

issue6028
review33621002
2016-11-12 14:23:22 +01:00
Cédric Krier e190a02ef9 Add tax identifier on invoice
Some companies have more than one tax identifier, so this provides a way to
define which one to print on the invoice.

issue5998
review28961002
2016-10-31 17:29:23 +01:00
Nicolas Évrard e15452bb2e Use activate instead of install for module activation
issue1456
review28931002
2016-10-20 12:54:36 +02:00
Cédric Krier 8efc4dd1e9 Use install_modules tools in scenario
issue5794
2016-08-26 09:58:16 +02:00
Sergi Almacellas Abellana 9c559494e8 Copy original amount sign when computing fixed payment terms
issue5758
review26491002
2016-08-05 12:29:44 +02:00
Sergi Almacellas Abellana 1e54ef271c Ensure payment term always returns a value
issue4286
review26281002
2016-05-25 12:59:48 +02:00
Sergi Almacellas Abellana bc3ca2a0f9 Round lines amount on invoice searcher methods
issue5460
review25021002
2016-04-12 09:20:53 +02:00
Cédric Krier b455cda23e Merge invoice and credit note
issue5225
review18921002
2016-03-20 22:58:13 +01:00
Sergi Almacellas Abellana 7e204d4635 Add scenario to test base rounding
issue5370
review21771002
2016-03-16 13:25:36 +01:00
Cédric Krier 3fe984e491 Add missing extra import in tests 2016-03-11 22:36:55 +01:00
Cédric Krier e4d7bcb689 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:55:52 +01:00
Cédric Krier 23cd459b36 Improve get_reconcile_lines_for_amount
Test all combinations of both payment_lines and lines_to_pay and keep the one
with the smaller remainder.
Use a namedtuple as result to ease its usage to callers.

issue5327
review16001003
2016-03-04 00:23:47 +01:00
Cédric Krier 25896a018f Add Python3 support
issue3211
2016-02-28 20:51:18 +01:00
Cédric Krier 1c7b0aa606 Make TestCase create and drop its database
and use with_transaction decorator.

issue5263
review20711002
2016-02-06 19:11:56 +01:00
Cédric Krier c3b6648204 Change payment term percentage into ratio
issue5286
review15951002
2016-02-03 21:26:47 +01:00
Cédric Krier 2ecad9f90c Add test for TaxLine.on_change_tax
issue5199
review17711002
2015-12-31 13:29:32 +01:00
Cédric Krier df828ba978 Don't set default unit price on invoice line
issue4857
review23281003
2015-07-16 19:31:46 +02:00
Cédric Krier 8c957afa60 Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:03:00 +02:00
Cédric Krier ff0a261389 Allow to define many relativedelta on payment term
Replace the set of fields defined on payment term line by a list of
relativedelta containing the same set of fields.

issue4573
review6911002
2015-03-02 23:28:12 +01:00
Cédric Krier 212bbd3995 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:12:55 +01:00
Nicolas Évrard b18cebb960 Add test for access rights of menu and actions
issue4295
review12661002
2015-01-02 16:07:52 +01:00
Cédric Krier a316785bd0 Fix most flake8 errors
review8771002
2014-12-02 12:54:39 +01:00
Cédric Krier b6133e79f7 Add some test tools to ease scenario writing
review11331002
2014-10-24 10:44:12 +02:00
Cédric Krier 91e2143167 Use new doctest setup/teardown
issue3627
review7401002
2014-09-04 08:44:40 +02:00
Cédric Krier 19d639255d Reconcile lines to pay with the cancellation ones
issue3437
review4981002
2014-05-04 00:07:35 +02:00
Sergi Almacellas Abellana 228ffc07a7 Add test for amount_secound_currency with negative taxes.
issue3683
review4721002
2014-03-28 19:10:51 +01:00
Cédric Krier d07688d728 Add test scenario for invoice with alternat currency
review3351002
2014-02-10 22:29:13 +01:00
Cédric Krier 2b597dd1bb Drop support of Python 2.6
review2691002
2014-01-31 00:03:05 +01:00
Cédric Krier f94c256dbd Cleanup tests
review2491002
2014-01-12 19:59:22 +01:00
Cédric Krier e9545aef4d Use common doctest_dropdb
review2151002
2013-12-18 18:28:57 +01:00
Cédric Krier 1750d9afcb Fix flake8 2013-10-05 12:16:31 +02:00