Commit Graph
4990 Commits
Author SHA1 Message Date
Cédric Krier 599dbd035e Add option to reset admin password with trytond-admin
issue5385
review23251003
2016-07-08 10:45:46 +02:00
Xavier Codinas 88fc69453d Fix TransationExport.default_result file value
issue5683
review32281002
2016-07-08 10:23:59 +02:00
Sergi Almacellas Abellana 2cc1d8a5b0 Close database connection before droping the database
issue5384
review27481002
2016-07-08 09:20:45 +02:00
Sergi Almacellas Abellana 5967d21d46 Remove database management from RPC
issue5384
review29311002
2016-07-07 16:05:45 +02:00
Xavier Codinas 7e359d5c2b Add option to update modules list
issue2638
review26431002
2016-07-07 09:43:01 +02:00
Sergi Almacellas Abellana 4b2b8671b6 Add Many2One rec_name's in Wizard.get_default
issue5665
review25451002
2016-07-06 11:47:49 +02:00
Cédric Krier c771f0faea Force encoding to open XML files
The views and icons file should always be encoded in UTF-8, so it is better to
force it when opening than relying on the default system.

issue5596
review21101002
2016-07-05 22:00:57 +02:00
Sergi Almacellas Abellana b24c4143a2 Remove string attribute from ir.ui.view and ModelView.view_header_get
issue2350
review24251002
2016-07-05 12:42:46 +02:00
Cédric Krier 6232dabdf3 Don't check write access on model for button with groups
issue5010
review23181002
2016-06-30 21:51:03 +02:00
Cédric Krier 424e0a1bb1 Limit readonly state for xxx2Many
issue5041
review29271002
2016-06-30 21:41:58 +02:00
Cédric Krier ddba34889c Prevent comparison when column size if None in TableHandler
column size could be None so in Python 3, it can not be compare to integer.

issue5661
review28361002
2016-06-30 18:35:42 +02:00
Xavier Codinas b829b3f13b Use home directory as default path for database and web root
issue4488
review26421002
2016-06-27 19:08:35 +02:00
Cédric Krier 1265f7c42f Reset context when saving records
The method set_context does not replace the context but just update it.
So we could have leak of the surrounding into the save context.

issue5614
review28341002
2016-06-27 19:08:04 +02:00
Cédric Krier 26312e43f9 Use context to instantiate records in RPC
issue5654
review26411002
2016-06-23 18:48:52 +02:00
Cédric Krier 87540ef0e8 Add warning about Function.setter instances not saved
issue5651
review28321002
2016-06-20 14:37:30 +02:00
Cédric Krier 16f0e84f25 Format the exception inside the try/except
Outside the try/except sys.exc_info returns None values, so we must format the
traceback inside the try/except.

issue5647
review23221002
2016-06-18 12:04:45 +02:00
Cédric Krier 63153e1c7f Ensure _check_access is removed when instantiate translation
Since changeset 3a17f8e704a7, there is no more context leak so the context when
saving is exactly the one at the instantiation. So _check_access must be
removed when the translations are instantiated.

review26401002
2016-06-14 18:19:27 +02:00
Cédric Krier 25e1361915 Add count option on Action Window Domains
issue5548
review23101002
2016-06-14 16:35:27 +02:00
Cédric Krier 8d8c489c83 Reset context when reading fields for browsing
The method set_context does not replace the context but just update it.
So we could have leak of the surrounding into the read context.

issue5614
review25161002
2016-06-14 16:00:15 +02:00
Sergi Almacellas Abellana f22e4e077c Fix antipatern of create/write in loop
issue3516
review14931003
2016-06-09 17:32:17 +02:00
Sergi Almacellas Abellana d90e992d32 Remove window_name on Action Window
issue5611
review22071002
2016-06-08 10:33:59 +02:00
Sergi Almacellas Abellana afce1a29ae Return the calling keyword in get_keywords
issue5612
review22081002
2016-06-08 10:08:03 +02:00
Cédric Krier 749387fa76 Do not Open icon and view files in binary mode
The value of the Function Char/Text fields must be str and not bytes under
Python3.

issue5596
review23161002
2016-06-07 09:55:42 +02:00
Nicolas Évrard 33224eeaa3 Check self.id against None before comparing to 0
issue5590
review25111002
2016-06-03 13:01:39 +02:00
Cédric Krier 703b21292d Add test Global Search
issue5593
review25121002
2016-06-03 00:03:20 +02:00
Cédric Krier f0235a101c Fix decoding test in global search
In Python3, str has no more a decode method but it is the bytes type which has it.
Bytes is a synonym for str in Python2, so we can use it for this test.

issue5593
review25121002
2016-06-03 00:02:38 +02:00
Cédric Krier 7731efca78 Fix check_user test for wrong password
changeset 3daf1a0f0ca7 changed the returned value None instead of 0.
So it is better to check against False
2016-05-31 13:23:21 +02:00
Cédric Krier 2c390fe71a Add customizable login process
It adds new configuration option to define the list of login methods.
It defines a new Exception to use to request user data during the login
process.
It separates the generic login attempt protection from the actual
authentication method.
It replace the API of the login methods to use a dictionary of parameters
instead of a single password.

issue5521
review16191003
2016-05-31 12:49:23 +02:00
Cédric Krier 39c58f14d1 Fix tree_invisible RelaxNG
Since changeset b59a0d9cb89c, any text value is allowed.

issue5425
2016-05-25 15:45:49 +02:00
Cédric Krier 4923eb4baf Move as much as possible import after the configuration
issue5564
review25321002
2016-05-25 11:15:54 +02:00
Sergi Almacellas Abellana 74dcfeb6a6 Allow to customize the substitutions used on sequence
issue4422
review24241002
2016-05-24 11:16:24 +02:00
Cédric Krier 1f9a834c9b Wait for a connection in PostgreSQL backend
If the pool is exhausted, we try to get one during few seconds before raising
an exception.

issue5435
review22911002
2016-05-10 10:35:23 +02:00
Cédric Krier 025cdfc985 Allow PYSON in tree_invisible attribute
issue5425
review21871002
2016-05-10 10:29:08 +02:00
Cédric Krier b08b37423d Decode data before json loads
issue5536
review23041002
2016-05-10 10:19:22 +02:00
Cédric Krier 60a4af2e29 Remove required attribute on view documentation
issue5535
review27261002
2016-05-10 08:46:45 +02:00
Cédric Krier acf9063283 Re-update translations 2016-05-07 15:09:30 +02:00
Cédric Krier 35f23539ca Increase version number 2016-05-02 15:32:54 +02:00
Cédric Krier 0fcc166d6a Added tag 4.0.0 for changeset 49a0caa894da 2016-05-02 15:31:55 +02:00
Cédric Krier 3cd15619ec Prepare release 4.0.0 2016-05-02 15:31:53 +02:00
Sergi Almacellas Abellana 439194daf6 Remove uneeded cursor parameter in postgresql drop_table
Since changeset 9b2e0aac2d9c

issue5516
review23001002
2016-05-01 22:50:11 +02:00
Cédric Krier 5b68149ea8 Update translations 2016-05-01 10:59:39 +02:00
Thierry Bruyere 91cd4040fa Database locked at first wizard execution with sqlite backend
Cache.resets create a new transaction but SQLite keeps a lock from the previous
transaction is it was not committed.
This commit was removed by changeset 9b2e0aac2d9c

issue5388
review16211002
2016-04-30 23:26:47 +02:00
Cédric Krier 17969b0e2c Fix typo in documentation
thanks to nblock
2016-04-27 22:28:43 +02:00
Cédric Krier 788f6811d0 Fix Translation set_view when arch is None
issue5486
review25261002
2016-04-18 15:05:06 +07:00
Sergi Almacellas Abellana e60291d8af Fix unreferenced value on pyson errors en view definition
Introduced in changeset6fb7dc7e9006

issue5481
review25051002
2016-04-14 19:53:39 +02:00
Cédric Krier c18b4cbc12 Remove tree_action keyword
tree_action is removed since version 2.0 with the merge of tree and list view.
2016-04-07 00:04:01 +02:00
Cédric Krier 506552af4e Log as error DatabaseOperationalError exceptions 2016-04-06 23:57:58 +02:00
Cédric Krier 3f8d34d802 Fix view documentation
- add missing enumeration of Board and Calendar
- fix image name description to talk about ir.ui.icon
2016-04-06 23:51:41 +02:00
Cédric Krier 66a6f7aad4 Keep colspan attribute when replacing field without access rights
The colspan attribute is important to keep the layout of the view intact.
So we must keep it after clearing all other attributes.

issue5444
review21901002
2016-04-02 15:22:24 +02:00
Cédric Krier 46ff36af7b Use str to test exception instead of unicode in integrity error
issue5446
review19161003
2016-04-01 10:29:51 +02:00