Cédric Krier
ca2b442afc
Add depends on Pool.register
...
issue7178
review37051002
2018-03-20 17:27:12 +01:00
Cédric Krier
b15f3fb4c5
Do not append Exclude where clause if empty
2018-03-19 17:48:55 +01:00
Cédric Krier
b3ca13748b
Add Exclude constraint
...
issue1422
review44061002
2018-03-19 16:57:49 +01:00
Nicolas Évrard
acdbe5a08f
Allow to perform unaccented searches on Char fields
...
issue7115
review44611002
2018-03-16 18:17:53 +01:00
Sergi Almacellas Abellana
8e80421ae2
Set admin password when TRYTONPASSFILE environment variable is set
...
This behaviour was wrongly removed in changeset 5ade83a210f0
issue7221
review37091002
2018-03-16 11:53:47 +01:00
Cédric Krier
036ca6d6a9
Always raise exception in table handler
...
issue7175
review40161002
2018-03-15 00:43:32 +01:00
Cédric Krier
57248f9655
Clear cache for all records of ModelSingleton
...
As write and delete can be called with any ids for records and the super calls
are always on the real record, the cache is only cleared for the real record.
So ModelSingleton must ensure to clear the cache for any record ids.
issue7205
review44731002
2018-03-15 00:23:11 +01:00
Cédric Krier
1c32a02b64
Simplify API for Session
...
- Allow to extend session management with a domain
- Let security manage the logging
- Let check differentiate expired session and session that does not exist
issue7134
review39171002
2018-03-07 00:34:09 +01:00
Sergi Almacellas Abellana
6d39f13489
Add migration to register buttons on ir module
...
changeset 83757dc87808 moved the buttons from res to ir module but it missed
the migration of the model data to allow updates from previous databases
issue7186
review38031003
2018-03-02 14:21:17 +01:00
Sergi Almacellas Abellana
ff2bded417
Ensure that all buttons are registered in ir.model.button
...
issue6389
review36621002
2018-03-01 11:59:23 +01:00
Cédric Krier
4a909f94a2
Add reset password
...
The reset password button generates a temporary random password which expires
after 1 day and is sent to the email address of the user.
The temporary password does not work as soon as a new password has been set.
The trytond-admin asks the email address for admin user and has an option to
set the admin email and to reset its password.
issue7037
review41761002
2018-02-23 19:13:19 +01:00
Cédric Krier
e778370e02
Ensure to put back the connection with a try/finally
...
This prevents to leak connection in the ThreadedConnectionPool of psycopg2.
issue7137
review39181002
2018-02-19 19:11:33 +01:00
Cédric Krier
62a90a603e
Use unicode instead of str for DatabaseIntegrityError
...
The exception message could contain non-ASCII errors for which standard
__str__ may fail, but as the database should always be in UTF-8 we may except
that unicode will not fail.
issue6128
review43971002
2018-02-19 19:09:06 +01:00
Cédric Krier
8a7953bb8f
Use proper SQL types
...
- When recreating the table to drop a column, the correct SQL type must be
converted by the database.
- SQLite uses BOOLEAN as base type for BOOL
issue7120
review37001002
2018-02-19 19:07:30 +01:00
Sergi Almacellas Abellana
54f70e2971
Add depends on Button
...
issue6919
review40811002
2018-02-19 11:35:37 +01:00
Cédric Krier
b197b6b13d
Add cache for check_xml_record
...
This allows fast return when the checked model has no record in ir.model.data
which is the most common case. This allow to prevent to search for non
existing records.
issue7119
review37991002
2018-02-14 19:35:57 +01:00
Cédric Krier
fbf488948b
Limit authentication attempt per IP network
...
ip_address and ip_network are added to LoginAttempt.
issue7110
review41031002
2018-02-14 19:24:01 +01:00
Cédric Krier
e8ee8dedac
Manage 'X-Forwarded' headers from proxies
...
issue7110
review41031002
2018-02-14 19:23:11 +01:00
Cédric Krier
7388e7b233
Add '_request' attribute to Transaction context
...
issue7110
review41031002
2018-02-14 19:22:03 +01:00
Cédric Krier
f911f48ed4
Delete translations only when model has translatable field
...
The call to Translation.delete_ids has a cost as it does search queries. So it
is better to not call it if we already know that there is nothing to delete.
issue7118
review37981003
2018-02-11 14:59:58 +01:00
Sergi Almacellas Abellana
0eaf7c16b8
Add 10 digits validation test on numeric field
...
issue7091
review37981002
2018-02-07 12:27:52 +01:00
Sergi Almacellas Abellana
b53fcf111a
Do not strip trailing zeros on Decimal digits validation
...
In order to support the 0 digits case rstrip was introduced in changeset
d3fec5da0dbdbut it breaks the case where the number of digits is high
as python uses manting representation when converting the float value
to string. This causes the last trailing zero is also removed which
breaks the validation.
issue7091
review37981002
2018-02-07 12:26:59 +01:00
Sergi Almacellas Abellana
a9595f3c25
Only convert to unicode exceptions string on python2
...
issue7097
review43941002
2018-02-07 12:08:56 +01:00
Cédric Krier
d1874d4f5f
Ensure all modules are activated by testing tools
...
issue7079
review41801002
2018-02-07 01:16:15 +01:00
Cédric Krier
bd8214a6a9
Ensure Session key is different on bunch creation
...
issue7087
review40041002
2018-02-07 00:35:46 +01:00
Cédric Krier
25df09ead1
Replace assertItemsEqual for Python3
2018-02-02 00:58:15 +01:00
Cédric Krier
ef74636148
Remove import of removed test.py file
2018-02-02 00:27:41 +01:00
Cédric Krier
478c4e6928
Refactor fields tests
...
issue7085
review40051002
2018-02-02 00:04:19 +01:00
Cédric Krier
b32d158d10
Remove MySQL backend
...
issue7017
review41771002
2018-01-24 20:12:42 +01:00
Nicolas Évrard
5673bdd98f
Add keyword attribute to button tag
...
issue7067
review39101002
2018-01-24 14:32:09 +01:00
Cédric Krier
50f4a789c0
Allow field name on image tag
...
issue7058
review43891002
2018-01-23 22:13:30 +01:00
Nicolas Évrard
808afa89cc
Use a more clear message for digits_validation_error
...
issue7047
review44561002
2018-01-18 16:26:33 +01:00
Cédric Krier
cb29af71ad
Replace unoconv by calling soffice directly
...
issue5907
review34341002
2018-01-12 16:25:20 +01:00
Cédric Krier
e7e4472c03
Allow to include mixin to pool objects
...
issue4735
review41751002
2018-01-12 15:46:52 +01:00
Cédric Krier
dec63a577e
Ensure returned records have the context from the calling time
...
The context may be modified between the call to Report._get_records and the
access to the record attribute.
issue7032
review44551002
2018-01-09 18:38:04 +01:00
Cédric Krier
d813ac2090
Add limit to SQL queries consumed with a single fetchone call
...
This remove some load on the database server.
This is only needed for queries that may have more than one rows.
issue7040
review43001003
2018-01-09 18:31:00 +01:00
Cédric Krier
f1c4e19155
Improve support of date_trunc for SQLite backend
...
issue7030
review40891002
2018-01-08 19:24:39 +01:00
Cédric Krier
c63d0f8188
Use integer division
...
The count of grouped_slice must be an integer and not a float.
2017-12-26 17:56:35 +01:00
Cédric Krier
10042b9597
Improve validation of PYSON domain
...
Use a different strategy if we are close to one domain per record.
It will use combined multiple domain at once instead of doing one query for
almost each record validated.
issue6983
review39021002
2017-12-26 17:28:42 +01:00
Cédric Krier
2d2ec90141
Use field name to call searcher or domain of Function field
...
The name from the domain may be nested.
issue7015
review44511002
2017-12-26 17:26:00 +01:00
Sergi Almacellas Abellana
e0c016aaf8
Use diferent values for active_ids and active_id on action window tests
...
This allows to test all clauses of pattern used by relate windows
issue7028
review42991002
2017-12-22 12:26:06 +01:00
Cédric Krier
8cfd0eb692
Use JSON canonical form for Dict value
...
It allows to make equality comparison.
issue7013
review39041002
2017-12-20 19:26:44 +01:00
Cédric Krier
a2269d5a38
Remove rules on user
...
The group should be the only place where rights are assigned to the user.
issue7005
review43821003
2017-12-20 19:20:57 +01:00
Cédric Krier
af498348a7
Allow to search and order translated fields using the derivative translations
...
Since rev 049635454a98, translations are derivatives so the search and order
must be done using all the parent languages.
issue6934
review39971002
2017-12-18 17:45:37 +01:00
Cédric Krier
668938d3f9
Test one fix at a time and catch only Template.substitute exceptions
...
issue6985
review35781002
2017-12-06 01:15:24 +01:00
Cédric Krier
67ec7b7bf5
Avoid cycled import between report and ir
2017-11-27 17:34:02 +01:00
Sergi Almacellas Abellana
c70e45a63a
Use pyson widget for button rule condition
...
issue6964
review37851002
2017-11-27 10:41:37 +01:00
Cédric Krier
437d7e3eaf
Add monetary formatting to language
...
issue6927
review38921002
2017-11-25 22:11:52 +01:00
Cédric Krier
473ac78eb4
Add exceptional parent language
...
issue6956
review40821003
2017-11-25 22:00:24 +01:00
Cédric Krier
bf6c9339f0
Allow to replace graph attribute
...
It must be allowed to have graph tag without child.
issue6950
review39901002
2017-11-21 01:27:46 +01:00