Commit Graph
1498 Commits
Author SHA1 Message Date
Cédric Krier ce0e68a287 Add HTML editor
issue8004
review54481002
2019-03-30 16:04:45 +01:00
Sergi Almacellas Abellana 74547c4251 Add day view on calendar
issue7774
review66441002
2019-03-28 12:26:36 +01:00
Cédric Krier bb0242faf8 Raise NotImplementedError when setting Function field without setter
issue7985
review265101002
2019-03-27 00:28:58 +01:00
Cédric Krier 6d16b629f2 Add CSV exports to print toolbar
issue8130
review54571002
2019-03-22 17:21:21 +01:00
Cédric Krier d07f279557 Remove global variables in cron startup
It is better to follow the same startup design than other service.

issue8200
review259131002
2019-03-22 12:17:50 +01:00
Cédric Krier 07d79c7861 Validate selection format in Dict schema
issue7947
review257131002
2019-03-22 11:46:52 +01:00
Sergi Almacellas Abellana 857cc25b6b Update numeric and monetary formating of languages
issue3636
review52561002
2019-03-21 15:13:13 +01:00
Cédric Krier 65c896b1f0 Do not fail on importing string tools if missing python-Levenshtein
python-Levenshtein is an optional dependency so trytond.tools.string_ should
not fail on import.

issue8040
2019-03-15 13:37:17 +01:00
Cédric Krier e2318257bb Allow to extend Field string and help
Those attributes are stored as StringPartitioned and each part creates its own
translation record. The translated strings are constructed by concatenation of
each translated part.

issue8040
review46731002
2019-03-15 13:01:11 +01:00
Cédric Krier 10e31bc311 Add Model.__names__ to retrieve model and field names
issue8159
review72431002
2019-03-15 12:27:44 +01:00
Cédric Krier 23a1288d32 Improve sync of data
- Enforce refresh session
- Remove write access for admin
- Use root to synchronize
- Do not fail if model does not exist anymore
- Remove from written values fields that do not exist anymore
- Rewrite fs_value to ensure normalized format

issue7950
review45971002
2019-03-15 11:11:33 +01:00
Cédric Krier b76e85be2e Add size attribute to image tag
issue8146
review49781002
2019-03-09 17:10:34 +01:00
Cédric Krier fc1e023861 Add description to attachment list view
The clients expect to be able to set the value of this field when adding a
text as attachment.

issue8135
review74481002
2019-03-04 18:55:19 +01:00
Cédric Krier c255cfe785 Display ids and rule names on access error
issue8093
review60551002
2019-03-03 23:11:17 +01:00
Cédric Krier 246c672073 Remove unique constraint on ir.translation
issue8034
review46721002
2019-02-13 10:27:32 +01:00
Cédric Krier ac8f1c6186 Update rng with rnc2rng
issue8005
review64551002
2019-02-04 22:46:32 +01:00
Cédric Krier 23c81ec015 Avoid to store in transactional cache former translation value
Translated fields are stored in the transactional cache. Using the instance to
get the source value when it is being set, store the former value into the
cache and the source.

issue7997
review58471002
2019-01-30 09:36:21 +01:00
Cédric Krier 847cbc5733 Add search and read RPC access to ir.calendar*
Those access are needed by the client to display the selection widget related
to those models. They do not have it by default because they do not inherit
from ModelView.

issue7996
2019-01-22 14:15:31 +01:00
Cédric Krier d80f2bdbe4 Use unique name for _get_language Cache
issue7974
review60481002
2019-01-15 00:02:19 +01:00
Cédric Krier 857cd4cc3f Remove unsupported ja_JP translations 2019-01-08 16:46:14 +01:00
Cédric Krier c39858aac7 Allow to delete record from XML with noupdate
We set the db_id to None to avoid to link later to a different record.

issue7668
review50671002
2019-01-07 22:08:52 +01:00
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 55619becda Remove unused ModelFieldGroup
issue7944
review52571002
2018-12-30 00:19:25 +01:00
Cédric Krier 1738a4ec35 Add ir.message and use custom exceptions
issue3672
review35291002
2018-12-29 14:19:08 +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 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 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 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 3b7a4172e2 Update translations 2018-09-28 23:02:33 +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
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 5a7aca31ea Manage session with max_age and timeout
and clear session when password is changed.

The sessions are checked using on a fix maximum age of 30 days using the
create_date value. The write_date is updated as long as the delay of the last
update is not bigger than the session timeout.
RPC can request a fresh session. A fresh session is a session that was updated
last time before the session timeout. If it is not the case, the session is
deleted and a request to create a new session is sent to the client.
All the sessions of the users for which the password has been changed are also
deleted in order to ensure that stolen session can no more be used.
We use this new feature for set_preferences of user instead of duplicate the
login mechanism.

issue7568
review53331002
2018-08-26 18:04:05 +02:00
Cédric Krier e310cfc96a Remove unique constraint on attachment name
issue7613
review50531002
2018-08-20 22:39:16 +02:00
Cédric Krier 098ec6d737 Use material design icons
and redefine the default list of icons

issue474
review60291002
2018-08-19 19:59:58 +02:00
Cédric Krier 4d779f27eb Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:52 +02:00
Cédric Krier 97a912896d Improve dialog size
Run configuration wizard in window mode because they contain full form which
need the full main window size.

issue7511
review70301002
2018-08-01 12:21:22 +02:00
Cédric Krier ae06a8bca2 Add transactional queue and workers
issue7406
review45461002
2018-07-27 09:32:28 +02:00
Cédric Krier 14e98fbcd3 Remove extra cls argument in __table_handler__ call 2018-07-24 22:16:18 +02:00
Cédric Krier 7a2ce7905a Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Sergi Almacellas Abellana 6edad5dba6 Rename plain report extractor into txt
Changeset d1101ee226b1 renamed the plain extension into txt but did not update
the report translation extractor

issue7552
review66291002
2018-07-02 12:09:13 +02:00
Cédric Krier d2a461390a Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:19 +02:00