Cédric Krier
71eebf25e5
Fix result order of search_read
...
read doesn't respect the order of the given ids but search_read has an order
parameter so the read result must be sorted using the index of search result.
issue3228
review11051002
2015-03-05 11:43:27 +01:00
Cédric Krier
191ce31f1d
Fix XML description in modules documenation
...
review15261002
2015-03-05 11:40:53 +01:00
Cédric Krier
44693df703
Use separate test file for base modules
...
This allows to filter them with the command line option.
review9051002
2015-03-05 11:38:23 +01:00
Cédric Krier
20484bb013
Fix formatting in logger calls
2015-03-05 11:32:18 +01:00
Cédric Krier
faa4bfe7d9
Add test on Model._rec_name
...
review9041002
2015-03-05 11:13:50 +01:00
Sergi Almacellas Abellana
5436fe6cee
Add support for Greatest and Least on SQLite
...
issue4597
review13011002
2015-03-04 18:15:06 +01:00
Cédric Krier
0ac0990c77
Improve logging
...
issue4458
review11781002
2015-03-02 23:39:15 +01:00
Cédric Krier
f5e69c3abf
Add product attribute on form view for One2Many
...
issue4229
review13581002
2015-03-02 23:18:22 +01:00
Cédric Krier
0d3459f659
Add missing base module test cases
2015-02-27 12:29:38 +01:00
Cédric Krier
f6c9666af3
Add documentation about reload client action
...
issue4430
2015-02-27 10:39:35 +01:00
Cédric Krier
81f56d7bea
Correctly format configuration example
2015-02-20 09:11:59 +01:00
Cédric Krier
0235d02ae7
Fix TimeDelta for MySQL
...
MySQL doesn't have a INTERVAL type so it must fallback to storing the total
seconds as DOUBLE.
issue4026
review8951002
2015-02-19 13:45:57 +01:00
Cédric Krier
36555242de
Use root user to compute user's sessions
...
There is an access rule on ir.session so user can only see his own session.
So it needs to use the root user to compute for others.
issue4558
review10201002
2015-02-14 18:32:56 +01:00
Cédric Krier
08b4dc2dd0
Improve type checking in PYSON
...
- convert long type to int
- convert str and unicode to basestring
- use isinstance when possible
issue4405
review11881002
2015-02-14 17:52:59 +01:00
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