Sergi Almacellas Abellana
2e4d1441ea
Prevent validating records multiple times
...
issue4548
review14981002
2015-02-13 18:14:12 +01:00
Guillem Barba
4a2255c8d6
Don't remove elements from tuple on group's menu_access field
...
The changeSet 2a7d6a7e5c59 modified the returning of get()
method of Many2Many fields, from dictionary of list to dictionary of tuples.
issue4542
review14971002
2015-02-10 19:12:32 +01:00
Cédric Krier
ace2988e39
Fix missing migration of trigger unittest to TimeDelta
2015-02-09 23:37:33 +01:00
Cédric Krier
5a34e18b75
Fix SQLite convert interval for min/max value
...
The total_seconds of timedelta min and max can not be used to instanciate a
timedelta. So we need to test for such case and return timedelta min or max.
2015-02-09 23:36:32 +01:00
Cédric Krier
0991a552de
Add TimeDelta field
...
And remove float_time widget.
issue4026
review5911002
2015-02-09 22:58:56 +01:00
Cédric Krier
0f468bde64
Allow string attribute on field in tree view
2015-02-04 23:39:22 +01:00
Sergi Almacellas Abellana
c4e96f4a08
Improve error message when model does not have any docstring
...
issue4390
review12921002
2015-02-04 23:16:11 +01:00
Cédric Krier
288dc51876
SQL SIGN must return zero for zero
...
The SQLite implementation of SIGN is not correct for zero, it must return zero
instead of 1.
issue4518
review10831002
2015-02-04 23:19:45 +01:00
Cédric Krier
1b0edb06c6
Cache.resets must be executed inside a Transaction
...
since changeset 01399128964f
issue4448
review13921002
2015-02-04 23:16:53 +01:00
Cédric Krier
32001bc6d6
search_global yields record instead of id
...
It is better for customization to yield record instead of id to prevent to
instantiate a second times the record.
issue4519
review6871002
2015-02-04 13:37:02 +01:00
Cédric Krier
9fc9716d3e
Add no-doctest option to run-test.py
...
Sometimes it is useful to quickly run only the unittest without the doctest.
review7871003
2015-01-29 12:29:40 +01:00
Cédric Krier
cf74a7b509
test_depends should not fail if module doesn't register any model
2015-01-27 22:42:33 +01:00
Cédric Krier
50dfa3f7c5
Add check for default model access and add ModelTestCase
...
When group access exists, a default model access should be defined otherwise
all access are given to non group users.
issue4485
review5941002
2015-01-27 18:11:23 +01:00
Sergi Almacellas Abellana
278e44f884
Allow to apply inheritance in calendar view
...
issue4473
review10061002
2015-01-21 19:52:26 +01:00
Sergi Almacellas Abellana
1ecdc9d3c9
Remove all the view elements which the user doesn't have access
...
issue4487
review10071002
2015-01-21 19:50:39 +01:00
Nicolas Évrard
a8acb64a51
Report API refactorization
...
review8831002
2015-01-20 18:48:46 +01:00
Cédric Krier
000f8fe5ac
Add active field on action list views
...
issue4501
review5951003
2015-01-20 12:01:06 +01:00
Jean Cavallo
dc0b21c9c3
Do not clear _datetime entry from context in rpc -> convert
...
issue4497
review8871002
2015-01-20 11:58:31 +01:00
Cédric Krier
d164e21cb4
Add tox and drone
...
issue4431
2015-01-18 20:21:26 +01:00
Cédric Krier
de081a63e8
Fix typo when retrieving PGUSER from environ
...
introduced in changeset 277c10477f84
2015-01-17 17:19:44 +01:00
Mariano Benedettini
53194e3784
Fix database dump when port is specified in db uri
...
Since changeset 01399128964f, the uri port is an integer and so it must be
convert to string for command line.
issue4490
review6861002
2015-01-16 13:52:25 +01:00
Guillem Barba
21ed4772e5
Recover uninstall modules feature
...
Manage case when state is 'to remove'.
issue322
review7881002
2015-01-16 10:21:52 +01:00
Cédric Krier
4891d337c9
Use PGUSER for postgresql database list
...
psycopg2 uses the PGUSER environment variable if no user name defined.
issue4478
review11801002
2015-01-15 23:49:13 +01:00
Marius Grigaitis
34b1af7a9d
Add test on history when number of records exceeds cursor.IN_MAX
...
issue4463
review10031002
2015-01-15 23:45:32 +01:00
Marius Grigaitis
8ed1715488
Handle history when number of records exceeds cursor.IN_MAX
...
issue4463
review10031002
2015-01-15 23:45:02 +01:00
Cédric Krier
bc6b76c745
Add _datetime as key of Rule.domain_get cache
...
The result could contain the _datetime value and so the cache should depend on
this value.
issue4455
review8841002
2015-01-12 22:50:09 +01:00
Cédric Krier
91cb6d2058
Add documentation about storage and display of DateTime
2015-01-06 16:33:54 +01:00
Nicolas Évrard
5a74a88f97
Add test for access rights of menu and actions
...
issue4295
review12661002
2015-01-05 16:35:09 +01:00
Cédric Krier
324d75ec8c
Use NOWAIT when locking a table
...
lock is used to enforce a serializable level for all transaction using on the
same table. This is not achieved if transactions are waiting for the lock
instead of abort and retry with a new transaction because they will still have
the initial transaction row values with the repeatable read level.
issue4373
review5901002
2015-01-03 11:37:24 +01:00
Nicolas Évrard
dcf57d8c33
Allow to use the dotted notation for search order parameters
...
issue4370
review5801002
2015-01-02 16:33:00 +01:00
Cédric Krier
67d5291bfd
Use Field.sql_column for SELECT queries in ModelSQL
...
By using sql_column, it increases the possibilities of customisation of fields.
issue4369
review14711002
2014-12-20 19:24:42 +01:00
Cédric Krier
59afe32b76
Add documentation about default_ method on Wizard
...
review9941002
2014-12-20 16:14:04 +01:00
Nicolas Évrard
6b0eac601a
Use data's action_id to find report to use
...
issue4411
review10741002
2014-12-18 11:36:40 +01:00
Cédric Krier
286860f6b1
Fix documentation of ModelView.fields_view_get
...
review8811002
2014-12-16 22:19:01 +01:00
Cédric Krier
9f3b1271d3
Add wizard and state_name to StateView.get_view
...
This gives the same signature as for get_buttons and get_defaults. And so it
allows to customize the returned view base on the wizard state.
issue4406
review5861002
2014-12-16 22:17:34 +01:00
Cédric Krier
38b59e0329
Remove Pool.object_name_list
...
This method is inefficient for testing existence of an item, it is better to
ask for forgiveness.
review12761002
2014-12-16 22:02:44 +01:00
Javier Villarroya
bef0afaed6
Use getboolean for database list configuration
...
Otherwise the false value is still evaluated to true.
issue4404
review14781002
2014-12-16 21:34:29 +01:00
Cédric Krier
b1fe2ea538
Don't set default value for user language
...
issue4400
review12791002
2014-12-11 22:21:38 +01:00
Sergi Almacellas Abellana
c0749b42f0
Add test for One2One called with multiple records
...
issue4353
review12711002
2014-12-05 18:32:38 +01:00
Sergi Almacellas Abellana
dc3ee92a88
Fix One2One to create all the relations when called with multiple records
...
issue4353
review12711002
2014-12-05 18:32:00 +01:00
Cédric Krier
a5150b8599
Allow to sort and sort attachment on last modification
...
issue4366
review11661003
2014-12-04 23:46:37 +01:00
Cédric Krier
5eddc51422
Only test non-DST timezone
...
SunOS doesn't set DST timezone for UTC, so only non-DST should be tested.
issue4380
review12771002
2014-12-04 23:37:05 +01:00
Cédric Krier
e8b10770e0
Fix documentation for new API of on_change
...
issue4203
review6741002
2014-12-04 17:17:01 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
ce7da45c56
Fix typo in UTC timezone log
2014-11-30 22:11:33 +01:00
Robin Baumgartner
eb2eab9525
Improve readability of logged email messages
...
issue3542
review8751002
2014-11-28 10:59:31 +01:00
Cédric Krier
c11b1f44ef
Use 'set' attribute to decide column creation in ModelSQL
...
Since changeset 64681f657d55, Function fields have a sql_type so it is wrong to
rely on this property to create or not a column. The 'set' method of field is
already used in many places for this purpose.
issue4302
review7731002
2014-11-29 10:45:12 +01:00
Cédric Krier
b379e32745
Add translated descriptor for Dict field
...
issue4343
review11641002
2014-11-27 22:20:43 +01:00
Cédric Krier
ea112cb6be
Function fields should return proper sql_type
...
issue4302
review12701002
2014-11-27 22:16:34 +01:00
Udo Spallek
389b56a7b6
Test 'field' object for attribute 'field'
...
issue4358
review12731002
2014-11-24 16:36:58 +00:00