Commit Graph
1447 Commits
Author SHA1 Message Date
Cédric Krier 57cbb9be3e Use select to True on create_date
If the index is created only in __register__ then it is dropped before being
created again.

issue11197
review389881002
2022-02-03 22:29:08 +01:00
Cédric Krier 6c7ae716c9 Convert report into bytes before storing
If the invoice report has a text output, we must encode it as utf-8 before
storing it.
And we do not need to convert to bytes the data read because Binary field is
already doing that.

issue10937
review376581002
2022-02-03 22:25:56 +01:00
Cédric Krier 718e45fba0 Do not test pay amount but set it in reschedule scenario
The amount computed by the pay wizard vary depending on the month it is run.
If it is run from 31st January to 29th February, the amount to pay today is 5.

issue11199
2022-02-01 11:31:06 +01:00
Cédric Krier 6efd1da87d Add new depends from new get_eval_fields implementation
issue11164
2022-01-30 20:17:47 +01:00
Cédric Krier 17240939ae Prevent using the same account on tax than invoice
The total computation relies on the invoice account to be only used for the
term lines.

issue11151
review366571002
2022-01-30 01:19:23 +01:00
David Blanco Bautista 52fe11c6ab Rename split lines into reschedule lines
issue11069
review387661002
2022-01-26 00:32:20 +01:00
Adrià Tarroja Caubet 9df23c1e66 Warn all past payment terms at the same time
issue11058
review376221002
2022-01-25 23:30:35 +01:00
Cédric Krier 4ca24d9cc5 Ensure to set correct company context when calling today
issue11046
review370421002
2022-01-23 12:54:56 +01:00
Cédric Krier 32c38bb7a0 Remove duplicate invoice_type depends on account of invoice line 2021-12-22 22:49:29 +01:00
Cédric Krier 023810de2b Add support for Python 3.10
and remove support for Python 3.6.

issue11048
review364451002
2021-12-18 16:29:38 +01:00
Cédric Krier 3b9bf2110f Add coverage to tox
issue7685
review51501002
2021-12-13 23:10:08 +01:00
Cédric Krier df325bdb91 Follow isort formatting
issue10928
2021-12-11 17:58:41 +01:00
Cédric Krier eb74ef0a2a Copy sign of lines total to remainder total currency
issue10923
2021-11-02 01:22:54 +01:00
Cédric Krier bf70792e51 Increase version number 2021-11-01 17:13:50 +01:00
Cédric Krier ff33e758bb Add tag 6.2.0 [skip ci] 2021-11-01 17:13:38 +01:00
Cédric Krier a8b96fc2f1 Prepare release 6.2.0 [skip ci] 2021-11-01 17:13:38 +01:00
Cédric Krier ee5e81b7a2 Use standard format for invoice payment term warning 2021-10-31 16:08:15 +01:00
Cédric Krier e68106e425 Use the total amount of the invoice as second currency total
issue10923
review381341002
2021-10-31 10:27:03 +01:00
Cédric Krier 737a1261fa Update translations [skip ci] 2021-10-30 11:32:01 +02:00
Nicolas Évrard 893587b7eb Do not copy invoice payments when copying move lines
issue10502
review367121002
2021-10-29 17:03:20 +02:00
David Blanco Bautista 483739d7aa Add unique constraint on line taxes
issue10841
review366081002
2021-10-21 00:03:36 +02:00
David Blanco Bautista f41f8d9dbe Reset payment term when party is removed
issue6036
review346991002
2021-10-08 19:32:57 +02:00
Maxime Richez 5ba75a8dfe Add methods to format number and symbol on Lang
and add format number with symbol on Report

issue10730
review371831002
2021-10-04 18:52:01 +02:00
Adrià Tarroja Caubet e7a3e6ae57 Add warning to prevent posting invoices in the future
issue10088
review332311002
2021-09-15 19:19:35 +02:00
Cédric Krier 43eb6ebe4d Provide digits from unit of measure
issue10677
review365801002
2021-08-30 00:27:13 +02:00
Cédric Krier 8f3a9291c3 Support accounts on tax of type 'none'
And update the account of invoice tax if the base change.

issue10656
review334711002
2021-08-27 09:03:48 +02:00
Cédric Krier 5797a9a192 Add monetary field
issue10598
review338511002
2021-08-21 09:09:55 +02:00
Cédric Krier 697f2a857b Add split lines wizard
issue10424
review349911002
2021-08-20 23:45:02 +02:00
Cédric Krier e3ba424efe Do not compare base to 0 if it is None
issue10657
review369471002
2021-08-19 22:32:48 +02:00
Sergi Almacellas Abellana 857dc2be6d Clear payment_term_date when copying invoices
issue10635
review334641002
2021-08-09 13:18:17 +02:00
Cédric Krier e6701a6a9a Prevent overpay invoice without amount to pay
issue10573
review369291002
2021-07-21 23:57:42 +02:00
Cédric Krier 2c24cab714 Always use proteus config argument in testing tools
issue10548
review338421002
2021-07-12 22:56:26 +02:00
Juanjo Garcia 7f026731ba Use the proper variable name in the same account error message
issue10500
review371071002
2021-07-07 14:33:21 +02:00
Cédric Krier b9b7bc0e2e Backed out changeset e37577def17b 2021-07-07 14:33:11 +02:00
Juanjo Garcia ce54fbc836 Use proper variable name when formatting same account error message
issue10500
review348701002
2021-07-07 14:33:00 +02:00
Cédric Krier 4944d70ef9 Add default value for CI env
issue10455
review332961002
2021-07-04 17:54:46 +02:00
Cédric Krier c881f82f5d Use 1 as value when taxes_deductible_rate is None
issue10453
review353561002
2021-05-26 23:52:30 +02:00
Sergi Almacellas Abellana 5b6a13bb4c Create base tax line for manual taxes
issue10429
review340811002
2021-05-20 10:20:41 +02:00
Cédric Krier f3659b2874 Increase version number 2021-05-03 15:47:26 +02:00
Cédric Krier cd6e51ed72 Add tag 6.0.0 [skip ci] 2021-05-03 15:47:15 +02:00
Cédric Krier 002c0ed7d1 Prepare release 6.0.0 [skip ci] 2021-05-03 15:47:14 +02:00
Cédric Krier ccde9731d6 Add missing fields to copy when credit invoice and line
issue10260
review334301002
2021-05-02 11:00:49 +02:00
Cédric Krier 971e389fc5 Update translations [skip ci] 2021-05-02 10:30:10 +02:00
Cédric Krier ee7b9fae7b Add Romanian [skip ci]
issue9110
review301541002
2021-05-02 09:56:32 +02:00
Cédric Krier 4855e0836b Skip maturity date formatting if empty
issue10222
review336111002
2021-04-30 13:31:23 +02:00
Sergi Almacellas Abellana a78403cf81 Do not test past payment date for supplier invoices
issue10370
review361821003
2021-04-29 13:21:38 +02:00
Cédric Krier 996ceffb64 Prevent changing the company when party is set
As many fields are set using party which depends on the company context, the
company can not be changed once they are set.

issue10289
review332591002
2021-04-22 00:03:27 +02:00
Cédric Krier f84a891925 Remove contextual domain on company
issue10302
review338141004
2021-04-20 09:18:57 +02:00
Sergi Almacellas Abellana 8d61e68c0b Do read amount value inside subtotal computation
The field can not be used because the server will read the values of all lines
in the invoice and cause a recursion error

issue10284
review363151002
2021-04-15 10:10:55 +02:00
Cédric Krier 4525f90d7f Remove unused Null import 2021-04-12 22:01:27 +02:00