Commit Graph
4757 Commits
Author SHA1 Message Date
Cédric Krier b6863e0486 Compute value to save only at one place
review279761002
2019-07-25 10:25:01 +02:00
Sergi Almacellas Abellana e8d53cf1fb Remove space between menu and set_relief attribute
issue8515
review287811002
2019-07-23 09:29:18 +02:00
Cédric Krier b23fc2f4f7 Remove unused toolbar_box attribute in Wizard
issue8499
review251781002
2019-07-23 00:07:49 +02:00
Cédric Krier 62976e117f Update display logs for new related read API
Since issue7888, the result of related fields are stored in nested
dictionaries.

issue8426
review259841002
2019-07-20 21:45:28 +02:00
Cédric Krier bde46df290 Do no rely on CellRenderer mode but on type
The mode value is from the last row rendered not the current one.
So we must just rely on the type of CellRenderer to know if it can be edited.

issue8483
review261821002
2019-07-17 22:43:14 +02:00
Cédric Krier 35bcbd9d00 Ensure integer expand is converted into boolean
issue8308
review253381002
2019-07-13 00:16:28 +02:00
Cédric Krier d1ead06bd8 Re-use FormXMLViewParser to parse board view
issue8313
review275591002
2019-07-08 17:15:51 +02:00
Cédric Krier abe4078cac Replace set_homogeneous by Gtk.Grid equivalent
The container is a Gtk.Grid and no more a Gtk.Table since issue8139

issue8423
review263721002
2019-06-20 23:19:41 +02:00
Cédric Krier bae7bb440f Do not store colors on IconFactory
The configuration values may change when it is loaded on startup.

issue8416
review257601002
2019-06-20 23:18:17 +02:00
David Harper 80b45a24b3 Use outline style mdi icons for back and forwards
issue8400
review271521003
2019-06-17 22:24:46 +02:00
Cédric Krier 70ff820e66 Allow customizing Dict keys order
We add a sequence attribute to the key definition and use it for sorting.
This attribute is filled by the field sequence if it exists (using
sequence_ordered) or by the key name.

issue8373
review275431002
2019-06-16 19:24:15 +02:00
Cédric Krier e153034941 Improve domain validation error from server
We add to DomainValidationError the invalid domain and the field definition so
the client can format and append it to the description of the error.

issue8288
review255351002
2019-06-16 19:04:55 +02:00
Cédric Krier fc2308da11 Allow to search on related field in search box
The server adds to the definition of the fields, the definition of relation
fields up to specific deep level.
The clients use this relation fields definition to extend the domain parser
with those fields using a dot notation. But those "dotted fields" are not
shown in the search filter to not bloat the popup as it is dedicated to
learning.
In addition, Dict fields are also filled with relation fields coming from the
keys defined in the schema model. As the size can very large, it is possible
to deactivate this feature from the configuration.

issue8293
review259391005
2019-06-16 15:44:14 +02:00
Cédric Krier 049c1c1842 Add _type attribute to drag column
Every column should have a _type attribute to distinct them for some events.

issue8407
review283511002
2019-06-16 12:35:43 +02:00
Cédric Krier 67e15dc9e4 Update Tryton banner
We use svg as it is smaller.

issue8382
review275451002
2019-06-12 19:13:23 +02:00
Cédric Krier 63517c2e4e Add widget prefixes as column prefixes
issue8406
review261581003
2019-06-12 19:10:19 +02:00
Cédric Krier b2a44a962c Prevent modification of cache RPC answers
The cached value should never be changed after being stored by the setter or
by a getter. So we make a copy of the value before storing it and return
another copy when returned.

issue8387
review269601002
2019-06-12 19:04:42 +02:00
Cédric Krier 8250b52aff Correct formatting in po files 2019-06-10 23:14:36 +02:00
Nicolas Évrard 672ab9b17c Add dependency to PyGObject
issue8408
review283491002
2019-06-07 09:57:20 +02:00
Cédric Krier e1aef8b79d Add Dict widget to tree view
It is needed to be able to search on dict.

issue8296
review271331012
2019-06-04 18:20:23 +02:00
Nicolas Évrard 6399977a19 Add handle to reordable line of tree views
issue8269
review257321002
2019-06-04 17:51:52 +02:00
Cédric Krier 148fa9b24e Use same definition format for dict key than field
This will allow to use the dict keys as relational fields and allow the client
to use them for domain parsing.

issue8295
review273311002
2019-06-03 15:37:49 +02:00
Cédric Krier e0cdb98186 Show revision datetime in local timezone
issue8365
review271441002
2019-05-27 23:18:37 +02:00
Cédric Krier 5bd3c465f5 Parse imported value only if non empty
Empty value can not be parsed by locale. So they should stay empty.

issue8357
review285231002
2019-05-27 23:15:24 +02:00
Cédric Krier ba4ac7d3c3 Fix wrong indentation in setup 2019-05-23 10:10:47 +02:00
Cédric Krier 0747546987 Use FileFinder and SourceFileLoader to load plugins
On frozen environment using import_module does not work because the plugins
are not in the PYTHONPATH.

issue8334
review253491002
2019-05-13 22:39:27 +02:00
Cédric Krier 3572f110db Increase version number 2019-05-06 14:46:45 +02:00
Cédric Krier 9c4f4a6729 Added tag 5.2.0 for changeset d5652dee45a4 2019-05-06 14:46:28 +02:00
Cédric Krier 055d01341b Prepare release 5.2.0 2019-05-06 14:46:28 +02:00
Cédric Krier 88e1e01b90 Do not send value for readonly Many2Many
In contrary to One2Many, Many2Many can not be modified when they are readonly.
But Many2Many inherit from One2Many so we must exclude them explicitly from
the test.

issue8323
review275371002
2019-05-06 13:37:21 +02:00
Cédric Krier 4cc1b194cd Convert height and width attributes into integer
This conversion was lost in the refactoring of issue8131.

issue8325
2019-05-05 19:50:58 +02:00
Cédric Krier d733c11276 Do not rely on field views to load form fields
If the views attribute of the field is wrong or empty, the record will not
load the value for this field. The views attribute can be empty if it was
created by copying the field from its parent.
So it is safer to not rely on this attribute which is there only for
optimization and instead always use all the fields defined on the view.

issue8289
review263471002
2019-05-05 19:33:48 +02:00
Cédric Krier c6e7390b11 Update selection to the dropped record
After drag&drop, the treeview keeps the selection at the path where the
drag&drop started. But as the current_record is not changed, this creates an
inconsistant display. So we ensure that the dropped record is selected at the
end.

issue8192
review267371002
2019-05-05 19:32:24 +02:00
Cédric Krier cd5eed3d1c Make ProgressBar inherit from Cell
ProgressBar widget uses methods from Cell.
2019-05-03 17:58:42 +02:00
Cédric Krier 980e379029 Populate contextual menu synchronously
Recent version of GTK does not support anymore filling the contextual menu
asynchronously.

issue8286
review265361002
2019-05-03 09:12:03 +02:00
Cédric Krier ad1da2b28f Update board parse to work with new Container API
The Container API has changed in issue8139.

issue8307
review267321003
2019-05-02 12:54:19 +02:00
Cédric Krier c9bc5c9b67 Use group _context to avoid leaking session context
When launching a new action, the context should not contain the session
context because it is automatically appended to the evaluation.
When creating a new group when the context model changed, it should not
contain the session context neither.

issue8312
review267301002
2019-05-02 12:49:12 +02:00
Cédric Krier db18b3f033 Ensure to put search_value in URL
If the screen container or the domain parser are not yet ready to compute the
search_value, we should ensure to use the initial search_value. Otherwise sao
may trigger to open a new tab without the search_value because the URL will be
set with an empty search.

issue8267
review281471002
2019-05-02 12:46:37 +02:00
Nicolas Évrard 1e548d30e5 Remove _FileCache file from the FS when they're not used anymore
issue8311
review261391002
2019-05-02 12:11:35 +02:00
Cédric Krier 9066d3189c Update clients catalog template 2019-05-01 22:20:52 +02:00
Cédric Krier 7bc46a91c3 Update translations 2019-05-01 18:05:27 +02:00
Cédric Krier 877142166b Add Finnish
issue7237
review44951002
2019-05-01 16:38:57 +02:00
Cédric Krier 7749adc6f4 Add Turkish
issue6745
review48261002
2019-05-01 16:18:50 +02:00
Cédric Krier b4bfbb8544 Use but_remove only if One2Many has attribute add_remove
issue8305
review261361002
2019-04-26 12:06:44 +02:00
Cédric Krier 741f319617 Use TreePath and update set_cursor call to set cell
Since the removal of pygtkcompat, set_cursor needs to get a real TreePath and
no more a tuple.
Also we added a cell argument to set_cursor, so it must be filled or use
keyword arguments.

issue8290
review271351002
2019-04-26 12:05:31 +02:00
Cédric Krier e3ceba18c4 Allow all models for reference if there is no restriction
If the allowed models is empty, it means that there is no constraint on the
reference model. So we must allow all of them.

issue8300
review275311002
2019-04-26 12:04:10 +02:00
Cédric Krier b45eef8885 Properly retrieve text value from ComboBox
get_active_text does not exist anymore in Gtk+-3

issue8258
review273301002
2019-04-23 12:04:49 +02:00
Cédric Krier 775d016a46 Add parse method to DateTime widget
To fix issue8205, we need to force to parse the date/time entries. So DateTime
widget needs to have a parse method.

issue8259
review267211002
2019-04-23 09:12:07 +02:00
Cédric Krier 6118b67701 Prevent exception when parsing date
We should first try parsing for locale format to avoid ambiguity.
But also the index may fail if the locale format is not using numeric value.

issue8087
review273221002
2019-04-23 09:07:50 +02:00
Cédric Krier be0acbf6f2 Quote database name in URL
issue8271
review255281002
2019-04-15 15:56:48 +02:00