Commit Graph
5915 Commits
Author SHA1 Message Date
Cédric Krier 2bedebbccc Disable record rule when validating records
issue9796
review329451002
2020-11-11 20:33:18 +01:00
Cédric Krier 88e643518a Use proper format character in forbidden char message
issue9248
2020-11-06 00:51:27 +01:00
Cédric Krier a1671ab214 Forbid all white spaces except space in Char field
They can not be displayed by all clients (nor OS).
But also they can be trimmed automatically by web input which breaks comparison
against changes.

issue9248
review312681002
2020-11-05 23:58:15 +01:00
Cédric Krier 3af83195fe Increase version number 2020-11-02 15:37:54 +01:00
Cédric Krier 596b657794 Add tag 5.8.0 [skip ci] 2020-11-02 15:37:33 +01:00
Cédric Krier 3c7c124b91 Prepare release 5.8.0 [skip ci] 2020-11-02 15:37:33 +01:00
Cédric Krier d4c4748201 Update translations [skip ci] 2020-10-31 12:14:32 +01:00
Cédric Krier fb291d6d6c Add report extension as extra files
issue9760
review292571002
2020-10-27 21:15:28 +01:00
Cédric Krier 0a2cc7162d Construct recursively Tree search_rec_name with 'in' operators
Each value of the 'in' operators must be processed as a '=' clause.
The None values must be supported just in case it set in the 'in' values
because the mixin does not allow empty name.

issue9354
review304601002
2020-10-26 21:27:13 +01:00
Sergi Almacellas Abellana fc9aefe104 Get session max_attempt as integer when deleting user application
issue9752
review304591002
2020-10-24 23:17:19 +02:00
Cédric Krier cca6a1cd1b Remove support for Python 3.5
issue9733
2020-10-24 13:45:13 +02:00
Nicolas Évrard a9ff2c7339 PYSON's DateTime defaults to the current time in UTC
issue9698
review329211002
2020-10-22 12:11:09 +02:00
Cédric Krier 26076d82f1 Fallback to stored values to compute changed xxx2Many
The client may not send the values for the xxx2Many if they have not been
loaded. So in order to provide proper changes to apply once the values are
loaded we must base those changes on the current data stored.

issue9719
review308391002
2020-10-21 23:27:13 +02:00
Cédric Krier 9d4875277c Test default value for missing depends field
issue9726
review314481004
2020-10-21 23:23:41 +02:00
Cédric Krier 39a6751726 Set default value for missing depends field
This avoid to fill an instance with None value which will prevent it to be
saved with the default value for fields not explicitly assigned.

issue9726
review314481004
2020-10-21 23:23:17 +02:00
Cédric Krier 1f013a7eec Convert read column into proper type with SQLite
As SQLite has few basic types, we must use column names cast parsing to ensure
to read values in proper type.

issue9652
review310801004
2020-10-21 23:11:13 +02:00
Cédric Krier 560f056751 Add missing space and dot in translated strings 2020-10-21 21:08:55 +02:00
Sergi Almacellas Abellana 7378890e1b Do not use original_exception on werkzeug < 1.0
InternalServerError's original_exception argument was added on version 1.0

issue9632
review310551087
2020-10-20 13:02:35 +02:00
Cédric Krier 2439910640 Ignore flake8 E741 2020-10-16 19:19:59 +02:00
Cédric Krier ab14e12f1f Restore English language on tear down
The translations tests change the default language on setup and commit the
change. So we must restore the initial state of the database at the end of the
test case.

issue9702
review312521002
2020-10-14 14:43:40 +02:00
Cédric Krier 457910b012 Backed out changeset 94997ed66e01
issue9679
2020-10-12 18:02:39 +02:00
Cédric Krier 6228764210 Prevent update configuration after modules are imported
Modules can store copies of the configuration for performance reason so we must
prevent to change the configuration after it happens.

issue9679
review318351002
2020-10-12 17:46:39 +02:00
Cédric Krier 9c9f9fd60f Use different table instance for ir.queue sub-queries
It is cleaner and safer to use different instances for sub-queries.

issue9682
review294671002
2020-10-12 13:01:14 +02:00
Cédric Krier 8f6c1cc8d8 Allow to update admin user
issue9700
review296511002
2020-10-12 12:59:44 +02:00
Cédric Krier 245e4f3b55 Synchronize the noupdate attribute between XML and ir.model.data
issue9700
review296511002
2020-10-12 12:59:15 +02:00
Cédric Krier f9c3f80f16 Reload the context after creating a company with the config wizard
To get the new company set in the context, we must not fill the context with an
empty company nor employee.

issue9543
review318451002
2020-10-12 12:57:49 +02:00
Cédric Krier 001245bf60 Support timedelta in CSV import/export
issue9220
review297531002
2020-10-11 19:04:16 +02:00
Cédric Krier 281f8221bb Remove unused ReportFactory
issue9654
2020-10-11 17:15:10 +02:00
Cédric Krier b8e2124a45 Add optional PYSON recipients to email template
issue9617
review306401002
2020-10-11 13:32:18 +02:00
Cédric Krier 1984f83bbf Display simpler and clearer error message for assertIn using dictionary 2020-10-09 21:21:33 +02:00
Cédric Krier cd7d40eb07 Add symbol widget
issue9059
review276871002
2020-10-09 19:09:06 +02:00
Sergi Almacellas Abellana 2c461be0a0 Define ir module groups on res module
issue9633
review291051002
2020-10-09 13:06:42 +02:00
Cédric Krier 7f6b94610b Add sql_pairing tool
issue9606
review328091002
2020-10-08 21:34:15 +02:00
Cédric Krier 321461647e Add module prefix to "password same as" messages
issue9661
review298731002
2020-10-08 21:31:49 +02:00
Cédric Krier 576b6265a6 Update ModelSingleton to use the custom cache class API
issue9641
review292321003
2020-10-08 21:26:20 +02:00
Sergi Almacellas Abellana 97194bc10b Add format_datetime to Report
issue7202
review45521002
2020-10-04 23:04:01 +02:00
Cédric Krier 6b11460823 Fallback to model name as title
issue9596
review300381002
2020-10-04 00:35:23 +02:00
Cédric Krier 68d45321fd Required passlib >= 1.7.0
CryptContext.hash (used in User.hash_password) was added on version 1.7.0.

issue9631
review302191003
2020-09-24 23:05:04 +02:00
Cédric Krier 99135bf9db Close connection after testing the database
issue9629
review302191002
2020-09-24 23:02:14 +02:00
Cédric Krier 81bade4035 Allow sharing view searches
We add a rule to give read access to all view searches without a user.
We manage the delete access on client side thanks to the _delete attribute.
If the user does not have the delete right, the bookmark star is disabled.

issue9515
review323751002
2020-09-24 23:00:52 +02:00
Cédric Krier 05b53fa6c9 Allow overriding digits in Lang.currency and Report.format_currency
issue9588
review292221002
2020-09-24 22:49:09 +02:00
Cédric Krier cf60e3fa6e Remove trailing dash on report name without record name
issue9509
2020-09-24 18:38:41 +02:00
Cédric Krier ce88a10900 Update tests for new report name scheme
issue9509
2020-09-24 18:28:45 +02:00
Abraham Cabezas fb7516ddb1 Add record name in report filename
issue9509
review306161002
2020-09-24 09:51:09 +02:00
Nicolas Évrard bfd07fffef Ensure that views are valid when replacing link by label
issue9548
review327881002
2020-09-23 10:06:49 +02:00
Nicolas Évrard 70b2c9b56c Manage deletable and writable state from ir.rule
issue9357
review290101002
2020-09-23 10:04:19 +02:00
Sergey Datsevich 9012c89428 Add DeactivableMixinTestCase to test suite
issue9624
review326141002
2020-09-22 10:16:52 +02:00
Nicolas Évrard f6841f7d68 Remove useless deepcopy call
The copy is having a big impact when computing huge views

issue9557
review300321002
2020-09-18 16:27:29 +02:00
Cédric Krier c2e22d9d43 Add language attribute to data tag
issue9559
review302061002
2020-09-18 00:06:31 +02:00
Cédric Krier 82e64bf66a Send client email via server
issue9449
review292001002
2020-09-17 17:18:02 +02:00