Commit Graph
3962 Commits
Author SHA1 Message Date
Cédric Krier 4679d1c910 Add ir.calendar for month and day
This allows to replace time_locale and use the translation infrastructure
instead. So it can be customized using the translation override or derivative
languages.
This provides also a standard base to modules that needs calendar month and
day.

issue7815
review56451002
2019-01-01 15:47:23 +01:00
Cédric Krier 1faa877295 Remove country code from languages
issue7863
review53481002
2018-12-31 15:36:49 +01:00
Cédric Krier 31dc11cf6d Run tasks at this end of cron execution and with_transaction
issue7781
review68391002
2018-12-30 00:22:41 +01:00
Cédric Krier e5bf50805d Return XML-RPC answer only to XML-RPC request
This prevents to answer an XML-RPC fault to a request which only set xml as
accepted mimetype.

issue7913
review66481002
2018-12-30 00:21:39 +01:00
Cédric Krier 55619becda Remove unused ModelFieldGroup
issue7944
review52571002
2018-12-30 00:19:25 +01:00
Cédric Krier 5cab9c3995 Add test ordering of selection field
issue7934
review66491002
2018-12-30 00:14:59 +01:00
Cédric Krier 93e3c0f9df Order selection field with instance method on column
issue7934
review66491002
2018-12-30 00:14:27 +01:00
Cédric Krier 83bf159aef Check foreign key in last on database integrity error
The search is done on a new transaction so it can not find targets that were
created during the main transaction.
2018-12-29 23:28:40 +01:00
Cédric Krier 1738a4ec35 Add ir.message and use custom exceptions
issue3672
review35291002
2018-12-29 14:19:08 +01:00
Cédric Krier b387adc7bc Add check on ModelSQL for positive id
issue7867
review50631002
2018-12-22 00:01:41 +01:00
Cédric Krier d1bb790cb8 New API to read related fields
issue7888
review58431002
2018-12-21 23:41:56 +01:00
Cédric Krier e4e7ae740d Disable sortable and searchable on ModelView only
Those feature depends on the Model having a search method.

issue7878
review56491002
2018-12-17 23:03:19 +01:00
Sergi Almacellas Abellana fc5f906ce5 Do not initiate sql table when table_query is defined
issue7896
review64491002
2018-12-03 11:29:43 +01:00
Sergi Almacellas Abellana 633eb74e1f Remove required on icon, action domain and action view sequence
issue7889
review54451002
2018-11-29 13:19:47 +01:00
Cédric Krier c7f5c54a83 Remove implicit fields names in ModelStorage.read
It is a bad practice to not explicit the fields to read. So we should not
support it.

issue7830
review54421002
2018-11-28 10:05:01 +01:00
Cédric Krier 91df1dcf11 Always commit deleted/inactivated XML record
The transaction must be committed on each iteration in case the next one fails
and the transaction is roll-backed.

issue7884
review66471002
2018-11-28 10:02:50 +01:00
Cédric Krier 011f510dc9 Stop retry to remove session once it succeed
After the removal the loop must be broken and if no session has been removed
it should log an error message.

issue7852
review74421002
2018-11-18 12:07:17 +01:00
Cédric Krier c0510b0ec2 Refactoring test account and include search
issue7766
review50591002
2018-11-12 17:19:24 +01:00
Cédric Krier 1a3ee131fe Check read access on field in search domain
issue7766
review50591002
2018-11-12 17:18:06 +01:00
Cédric Krier 99580a2e6a Ensure to rollback and clean cache on exception
Exception raised in a test decorated by with_transaction should always clear
the cache to avoid leaking to other tests.

issue7829
review64471002
2018-11-07 19:02:34 +01:00
Cédric Krier a97f889228 Fix get access against nullable active group
The group table is in a left join so group.active can be NULL for model/field
access without group. On such case the access values must still be selected.

issue7023
2018-10-31 20:21:04 +01:00
Cédric Krier 39ea946edd Remove custom strftime for year before 1900
The bug has been fixed in Python 3.3

issue7814
review48671002
2018-10-31 18:15:57 +01:00
Cédric Krier 75b987233b Re-browse the filtered menus
It is needed to avoid access right errors when filtered records are access
because they share the same local cache.

issue7806
review45771002
2018-10-31 18:13:02 +01:00
Xavier Codinas 8be4976700 Add active field
issue7023
review50411002
2018-10-30 16:31:42 +01:00
Cédric Krier 9ebba6207b Fix argument order to Bus.publish in notify
issue7807
review51571002
2018-10-26 23:24:09 +02:00
Xavier Codinas 18c04da18b Use grouped_slice on load_module_graph
issue7051
review45001002
2018-10-24 17:35:09 +02:00
Cédric Krier 680af38018 Sort keys when dumping data
This ensure stability for future comparison.

issue7761
review45741002
2018-10-21 21:28:43 +02:00
Cédric Krier 394bbd189b Do not fail on SMTP connection error
We just log the error and process the transaction.

issue7775
review49631002
2018-10-15 22:52:52 +02:00
Cédric Krier e115ef92d3 Remove check access to trigger_write_get_eligibles
The triggers returned need to be read without any check access.

issue7764
review68321002
2018-10-15 22:49:51 +02:00
Cédric Krier 9c5bdf2451 Use write mode by default to check create and delete of resources
It is less astonishing for the user and it allows to customize easily the
check to perform per model.

issue7717
review54371002
2018-10-04 13:41:50 +02:00
Cédric Krier 48d894b08c Increase version number 2018-10-01 12:31:00 +02:00
Cédric Krier 472a1e0fff Prepare release 5.0.0 2018-10-01 12:30:45 +02:00
Cédric Krier 3b7a4172e2 Update translations 2018-09-28 23:02:33 +02:00
Cédric Krier 8e9c476e6f Use correct number arguments in rename column warning
issue7688
review47701002
2018-09-28 17:24:01 +02:00
Cédric Krier 77f7dda24e Set icon on sequence strict menu
As it is liked to an action with the first view without type, we must set
ourself the icon.

issue7724
review48621002
2018-09-28 16:55:57 +02:00
Udo Spallek c5829cbee9 Only use existing config files in werkzeug reloader
issue7727
review66401002
2018-09-27 22:19:33 +02:00
Cédric Krier d6c6147757 Use OrdereDict to register class in Pool
This allow to speedup the assertion which check that a class is not already
registered.

issue7728
review49581002
2018-09-26 23:10:00 +02:00
Cédric Krier f41cb86e69 Allow to disable Bus
issue7737
review60381002
2018-09-26 23:03:15 +02:00
Cédric Krier f02adda81b Fix assert in Pool.register
The pool is filled with (cls, depends) so the assertion should be done only on
the list of cls.

issue7728
review66411002
2018-09-25 22:20:16 +02:00
Cédric Krier e14201731a Merge fs_values when extending record from other module
When a module extend a record from another module, it should not erase the
fs_values of the original module but instead extend it. So the data is not
considered out of sync.

issue7693
review70371002
2018-09-19 00:15:05 +02:00
Cédric Krier b80f1da93e Remove migration before 3.0 in convert.py
issue6470
review60341002
2018-09-14 08:28:51 +02:00
Cédric Krier fa0ee967fa Log configuration that are not loaded
issue7690
review64361002
2018-09-12 12:47:40 +02:00
Cédric Krier 81375e0d45 Use callable instead of instance of collections.Callable
issue7666
review50571002
2018-09-11 00:19:52 +02:00
Sergi Almacellas Abellana 3c80cfd8c4 Allow non translatable reports
issue4033
review56361002
2018-09-07 16:23:52 +02:00
Cédric Krier 12f6582e08 Rename tryton-dialog-* icon into tryton-*
issue474
2018-09-06 10:01:11 +02:00
Cédric Krier ff948820bf Use dropdown for attachments
issue7659
review50551002
2018-09-02 10:44:38 +02:00
Cédric Krier a6a7325f46 Remove deprecation warning
- remove invalid escape sequence
- use  read_file instead of read_fp
- use importlib instead of imp and __import__
- use callable instead of instance of collections.Callable
- fix silent file closing
- replace SafeConfigParser by ConfigParser
- replace decodestring by decodebytes
- replace encodestring by encodebytes

issue7666
issue7390
review53361004
2018-09-01 17:06:28 +02:00
Cédric Krier d221e36653 Improve ModelStorage.copy
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default

issue5576
issue7648
review72291002
2018-09-01 01:02:04 +02:00
Nicolas Évrard eb04b82822 Add bus management
issue7537
review66341002
2018-08-30 11:15:01 +02:00
Cédric Krier e4a1a7fc8b Allow to set any default configuration value from environment
issue7620
review74301002
2018-08-27 22:32:45 +02:00