Commit Graph
56995 Commits
Author SHA1 Message Date
Cédric Krier fc8e2016e7 Compute amount of invoice line tax when changing tax or base
Using on_change_with does not work correctly for editable field because the
value may be changed when the user does not expect it.

Closes #8618
2023-05-17 18:24:40 +02:00
Cédric Krier 40d8a5644d Set context on report instantiation when testing consolidation statement
The context of report is set on instantiation and not on execution.
2023-05-15 17:57:58 +02:00
Cédric Krier 1b025feab5 Escape % in replaced value of strftime format 2023-05-09 22:58:50 +02:00
Cédric Krier 5c1f28efa0 Do not replace strftime placehoders escaped with double % 2023-05-09 22:53:51 +02:00
Cédric Krier f141830d1b Avoid unnecessary database access when formatting date/time
When the format does not contain placeholders that need to be replaced, there
is no need to compute the replacement.
2023-05-09 19:11:44 +02:00
Cédric Krier ffc7ce55a3 Parse authorization header for session scheme without token
Since Werkzeug >= 2.3, it always tries to parse the Authorization header as a
digest. If the session value which is encoded in base64 needs padding, the
trailing `=` are interpreted as header values and the token attribute is not
filled.
In this case we must parse ourself the Authorization header to decode the
base64 value as session.

Closes #12259
2023-05-08 13:21:10 +02:00
Cédric Krier b68a8d6598 Deduce ignored sale quantity from credit limit
Closes #12226
2023-05-26 17:11:38 +02:00
Cédric Krier ac74f92f84 Do not deduce negative sale quantities from credit amount
Closes #12226
2023-04-27 17:13:39 +02:00
Cédric Krier 1b165ac4bd Raise error messages for missing currency exchange journal and accounts 2023-05-10 14:57:42 +02:00
Cédric Krier 681988e9dd Raise an error message for missing write-off method when reconciling 2023-06-01 00:00:37 +02:00
Cédric Krier 4255e6ec1c Use consistent name for "Write-off" 2023-05-10 14:43:34 +02:00
Cédric Krier 2015647285 Do not fail on missing writeoff account for reconciliation
There is no need to check for second currency if there is no account.
2023-05-10 13:14:00 +02:00
Cédric Krier c1ca4757b3 Set explicitly account template type to None
#11143 removed some type value to follow the constraint of children having the
same type. But as there is no explicit value the old one is kept and so the
chart template may be invalid.

Closes #12280
2023-05-19 11:53:21 +02:00
Cédric Krier 9ad5356fa5 Call get_currencies from super to add balanced when reconcile deposit account
The changeset f9560247a0fc changed the name of the function without renaming
the super call.

Closes #12266
2023-05-11 09:38:33 +02:00
Sergi Almacellas Abellana cf95121e98 Do not test quantity for lines of type different than line
Closes #12274
2023-05-16 09:35:15 +02:00
Maxime Richez 74af46a4bf Use selection widget for weekday on currency cron form
Closes #12292
2023-06-01 08:48:45 +02:00
Cédric Krier 9612d5cb7a Fallback to raw selection value as selection string
The changeset 2763339d88d5 removed the fallback when reading invalid data for
a selection but it is important to not fail on reading to let the user fix the
error.
2023-05-11 09:31:20 +02:00
Cédric Krier 2f88f2534a Do not validate model that requires transaction lock
Since c8771e45b861 an exception is raised if the table was not locked on
transaction starts.
When validating some records with trytond-admin, we do not want to restart the
validation process to lock the tables to avoid creating conflict with the
running server.
2023-05-10 10:22:21 +02:00
Nicolas Évrard ba66fb9c6d Set the score to 0 for HashTranslator in PostgreSQL when include is specified
For now indexes using the HASH method do not support the use of included
columns on Postgres.

Closes #12294
2023-05-27 17:12:48 +02:00
Hodei Navarro bfa67d9302 Fix typo in search field when deactivating sale point's tax included
Closes #12286
2023-05-25 09:06:04 +02:00
Sergi Almacellas Abellana c594bc67df Manage empty stock end date values on location quantities
Closes #12289
2023-05-25 15:55:40 +02:00
Wolfgang Schröder b769623b79 Support has_returning for sqlite database backend 2023-05-24 11:45:47 +02:00
Sergi Almacellas Abellana e410ddd589 Update SII wsdl location
Closes #12276
2023-05-17 11:26:13 +02:00
Cédric Krier d7fcbe6383 Use for-of statement to loop over fieldnames array 2023-05-17 18:27:02 +02:00
Cédric Krier 4f51057888 Declare blob as variable in image_url 2023-05-17 12:00:23 +02:00
Cédric Krier 5366e00f56 Clear cache before commit each module
As the cache is rollback to avoid dead lock, the transaction commit could
restore cache version that is no more valid.
For example the language cache of `ir.translation` which is filled initially
with only English and then reset when other languages are created by the `ir`
module. So at the end of `ir` module load, the cache is reset to contain only
English as it was the content before the first cache reset. This prevents to
load any other language from other modules.
So to ensure the next module is loaded using a fresh cache, all the caches are
cleared.

Closes #12246
2023-05-08 12:20:39 +02:00
Cédric Krier 399b443831 Remove timezone info after converting datetime in UTC
The datetime are always in UTC without tzinfo so they can be compared with the
data from the database.

Closes #12262
2023-05-10 10:07:34 +02:00
Cédric Krier 6b70ecf0f3 Test currency instead of party when reconcile automatically
Closes #12258
2023-05-05 12:24:08 +02:00
Cédric Krier 4929c6f294 Do not compute amount from reconciled lines if there is no currency
Closes #12256
2023-05-05 11:13:43 +02:00
Cédric Krier e76d45a2ff Eagerly read string value of multiselection fields
The changeset 2763339d88d5 implemented the rendering of multiselection from
:string but the record does not read them.
2023-05-10 00:19:57 +02:00
Cédric Krier 3e25348967 Fix test for multiselection :string in record values
Closes #12261
2023-05-10 00:06:56 +02:00
Sergi Almacellas Abellana c3c61da4f2 Use plural form on messages action name 2023-05-12 09:23:30 +02:00
Cédric Krier b4c18f9d8f Do not group calls to on_change if they can be cached
If the id is not in the depends, then the on_change calls can all be cached.

Closes #12219
2023-04-14 17:19:36 +02:00
Cédric Krier 6092ca035c Group call to on_change_with for later fields
Closes #12218
2023-04-14 17:04:01 +02:00
Cédric Krier ff17338ea5 Set type to Blob for SVG image
Without proper type, browsers do not render SVG image from Blob.
So we try to guess if it is an SVG image by trying to parse it as XML.
For other types, browsers render them without type.

Closes #12201
2023-04-30 00:57:46 +02:00
Cédric Krier c30868d091 Do not run RPC in thread if thread is disabled
Closes #11767
2023-05-05 12:51:06 +02:00
Cédric Krier 9ab2c45e5a Start RPC thread instead of running it
The start method execute the target in another thread when run execute the
target in the current thread.

Closes #12257
2023-05-05 12:50:26 +02:00
Cédric Krier 8d1fd00a23 Format sum without digits
Closes #12204
2023-04-30 00:06:09 +02:00
Cédric Krier b0590200db Set invoice journal only when type is changed
Using on_change_with does not work correctly for editable field because the
value may be changed when the user does not expect it.
2023-04-29 12:57:57 +02:00
Cédric Krier f2838915d4 Set invoice account only when changing party or dates
Using on_change_with does not work correctly for editable field because the
value may be changed when the user does not expect it.

Closes #12239
2023-04-29 12:56:51 +02:00
Cédric Krier e63e90809a Ensure to always have at least one set to union stock moves of commissions
Closes #12247
2023-05-02 15:06:17 +02:00
Cédric Krier 74bd070241 Use description list to document configuration files 2023-04-21 11:59:48 +02:00
Cédric Krier ab8a993c85 Use locale timezone to export CSV in locale format
Closes #12224
2023-05-07 10:08:24 +02:00
Cédric Krier dc3afbd016 Define process delay per sale and purchase
Closes #12209
2023-04-12 13:42:18 +02:00
Cédric Krier 672e9c1a7b Add headers attribute on table data cell of tree view
Closes #6669
2023-04-10 12:17:42 +02:00
Cédric Krier 63e6036c04 Display sum on column header
Closes #8134
2023-04-10 01:34:19 +02:00
Cédric Krier 5335a2022d Convert sum attribute into boolean 2023-05-06 14:25:22 +02:00
Cédric Krier ee1a9a7901 Remove expense and revenue on "Charges et produits financières"
Closes #12196
2023-04-09 19:23:15 +02:00
Cédric Krier 375d86c353 Show invoice line on timesheet form
Closes #4737
2023-04-08 23:55:43 +02:00
Cédric Krier 84d83120c5 Add receivable/payable to company 2023-04-07 18:24:09 +02:00