Commit Graph
5329 Commits
Author SHA1 Message Date
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 4f586030a6 merge 2018-02-02 01:05:42 +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 21fd0496a1 Remove trailing 0 in exp of Decimal.quantize
The digits validation on Decimal should remove trailing 0 when create exp.
Because the string of "10.0 ** -0" is "1.0" because it is a float.

issue7091
review39111002
2018-02-02 00:08:22 +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
Cédric Krier 60e218d9b6 Improve dependency links
issue7049
2018-01-21 19:57:11 +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 e0b58b519b Fix documentation about registration of model class in the Pool
review43841002
2018-01-09 18:37:03 +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 43617c4d3a Fix documentation about Pool.register 2017-12-28 18:12:34 +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 d6fff3938f Document order of view_ids of Many2One
issue6971
review43821002
2017-12-13 18:04:58 +01:00
Sergi Almacellas Abellana c1be67b037 Document how to create a report from client
issue6973
review43791002
2017-12-07 10:49:36 +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 fdcac537e3 Document --update-modules-list option of trytond-admin
review36821002
2017-11-22 23:48:35 +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
Sergi Almacellas Abellana cbf090cdb7 Complete ir_action_window test
Test search_value, context_domain and context model are correclty defined

issue6880
review43711002
2017-11-20 15:33:22 +01:00
Cédric Krier 87dfddc17a Do not use defaultdict as changed value
xmlrpclib can not dump it and _changed_value is used by RPC on_change methods.

issue6943
review44431002
2017-11-18 11:12:45 +01:00
Cédric Krier 271442d913 Simplify language formatting
* Add get method on ir.lang
* Convert format, currency and strftime of ir.lang into instance methods

issue6858
review40761002
2017-11-15 00:15:27 +01:00
Sergi Almacellas Abellana 9279df36b3 Update sqlite capabilities on README
Since changeset cb76212e8494 is now possible to alter column definitions

issue6730
review41661002
2017-11-09 12:28:24 +01:00
Sergi Almacellas Abellana e702a4368e Correctly import get_smtp_server on misc tools
issue6914
review40801002
2017-11-07 09:27:53 +01:00