Commit Graph
5181 Commits
Author SHA1 Message Date
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 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 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
Cédric Krier ab4bcc470c Test Lang.format
issue9585
review306331002
2020-09-16 23:26:09 +02:00
Cédric Krier c2aee769f2 Assign seps variable of Lang.format before using it
issue9585
review306331002
2020-09-16 23:25:48 +02:00
José Salvador 2a0fdf407e Disable explicitly CRITICAL logging level in test
The default value has been only added in Python 3.7.

issue9597
review326091002
2020-09-16 22:54:38 +02:00
Cédric Krier d1db3bba30 Queue trigger action only when there are records
issue9579
review315901002
2020-09-12 18:33:30 +02:00
Cédric Krier 54fc9d0805 Disable logging when running tests
issue9545
review294331002
2020-09-12 18:26:41 +02:00
Cédric Krier 2f19e94033 Register mixins to generic Report class
issue9531
review300261002
2020-09-12 18:25:14 +02:00
Cédric Krier d3494d767c Support MsgDirective and cache template for report
We add the Translator directives to the template so we can use the i18n
extension on HTML report.
We also cache in memory the parsed template and avoid to write it in temp
directory for the loader.

issue9511
issue6489
review321891002
2020-09-12 16:35:52 +02:00
Cédric Krier 2df53593f0 Count active session instead of only fresh one
issue9580
review325991002
2020-09-12 10:00:03 +02:00
Cédric Krier 28356c0b54 Do not reuse browse list of modules once some have been deleted
The browse list keep a reference to the deleted modules, so a read error
may be raised when accessing an attribute of any record of the list.

issue9567
review318151002
2020-09-09 23:36:33 +02:00
Cédric Krier a22aae46de Add debug logging when exception happens in dispatch request
issue9526
review310201002
2020-09-05 23:40:29 +02:00
Cédric Krier be7edef2ef Support PYSON comparison of date and datetime
issue4879
review270061002
2020-09-05 22:59:38 +02:00
Cédric Krier 642bd01520 Modify a copy of the context when pushing into the queue
issue9549
review327901002
2020-08-29 18:26:14 +02:00
Cédric Krier 261c7b0a52 Do not set transaction as readonly with psycopg2cffi
issue9546
review294341002
2020-08-29 18:23:26 +02:00
Cédric Krier db6cc1324d Do not set WWW-Authenticate on XMLHttpRequest
Client using XMLHttpRequest should manage themselves the authentication.
So by not setting the header, we prevent the browser to raise an authentication
popup.

issue9535
review290791002
2020-08-29 18:21:01 +02:00
Sebastien Marie 036af9f47b Do not add id_ to checked wizard ids if not set
issue9491
review321961002
2020-08-18 09:47:23 +02:00
Cédric Krier 0b85f26f78 Add cron task to clean old queue tasks
issue9502
review306141002
2020-08-11 22:03:20 +02:00
Cédric Krier 70648c3007 Add resource relate on notification log
We store on the log the record as resource but also the notification to get
the email subject.

issue9457
review307901002
2020-08-11 22:00:26 +02:00