Commit Graph
4914 Commits
Author SHA1 Message Date
Cédric Krier 555ee3088d Mark as modified when default is a list of ids
Otherwise they are not sent to the server because only modified record are
sent since issue6754.

issue9479
review308441002
2020-10-28 23:56:28 +01:00
Cédric Krier 9e0d14845e Do not rely on current record from screen
If the current record is removed, the attribute is set to None by
cancel_current.

issue9298
review314651002
2020-10-28 00:02:52 +01:00
Cédric Krier ca4318754d Catch any exception for server version RPC
It is the first method called with the input of the user.
The login window does not support that it raises an exception and as a lot of
different exceptions can be raised (and may change depending of Python
version), we must catch all of them. It does not hide any programming error as
they are logged.

issue9408
review292561004
2020-10-26 21:28:47 +01:00
Cédric Krier 7ce2b36381 Returns only Button instance instead of Gtk.Button
The Form.get_buttons must return only the instances created by <button/> and
not the Link which are also Gtk.Button.

issue9714
review318621002
2020-10-26 21:25:47 +01:00
Cédric Krier 9bff058853 Remove support for Python 3.5
issue9733
2020-10-24 13:45:13 +02:00
Cédric Krier 35bd931765 Keep record added/modified after cancel from popup window
We need to keep the record modified to ensure that it is added to the xxx2Many
on save.

issue9298
review296601002
2020-10-24 13:14:55 +02:00
Cédric Krier 03e5762225 Ensure inserted record has a valid position
issue9731
review298881002
2020-10-24 13:12:01 +02:00
Nicolas Évrard 60192ce3e3 PYSON's DateTime defaults to the current time in UTC
issue9698
review329211002
2020-10-22 12:11:09 +02:00
Cédric Krier fb50bc2699 Ensure field is loaded before applying changes
For fields like xxx2Many the changed values are operation to apply on the
existing value. So we must be sure to have loaded the value.

issue9730
review308401002
2020-10-21 23:27:41 +02:00
Cédric Krier 4c65e57063 Use editable path to update editable on display
The current record is not necessary linked to the editable. For example when a
new record is added, the current record is changed before the editing is done.
Also the CellRendererCombo does not emit remove-widget when focus is changed
which prevent to clear the editable variables.

issue9618
issue9266
review314471002
2020-10-21 23:21:26 +02:00
Cédric Krier df49583552 Reset screen order only when it is below a parent
Otherwise the default order from the action is lost when the screen is
instantiated.

issue9692
review302281002
2020-10-18 15:58:43 +02:00
Cédric Krier c5c7a48a86 Ignore flake8 E741 2020-10-16 19:19:59 +02:00
Cédric Krier e0c01e886c Support timedelta in CSV import/export
issue9220
review297531002
2020-10-11 19:04:16 +02:00
Cédric Krier 857cfd8f45 Count only for current tab on save, delete and duplicate
issue9591
review298541002
2020-10-11 16:10:38 +02:00
Cédric Krier 449b6b2b4c Add symbol widget
issue9059
review276871002
2020-10-09 19:09:06 +02:00
Cédric Krier 0db065083c Fallback to model name as title
issue9596
review300381002
2020-10-04 00:35:23 +02:00
Cédric Krier 4bd91f0cf5 Use contextual date format to format datetime
When a datetime has min time, we must still use the contextual date format
instead of the OS.

issue9622
review326131002
2020-10-03 23:37:02 +02:00
Cédric Krier 91d291cbf4 Allow sharing view searches
We add a rule to give read access to all view searches without a user.
We manage the delete access on client side thanks to the _delete attribute.
If the user does not have the delete right, the bookmark star is disabled.

issue9515
review323751002
2020-09-24 23:00:52 +02:00
Cédric Krier 66f66a1605 Display the full path of select fields to export
issue9595
review323971003
2020-09-24 22:43:50 +02:00
Nicolas Évrard 85d760fa31 Manage deletable and writable state from ir.rule
issue9357
review290101002
2020-09-23 10:04:19 +02:00
Maxime Richez 2baa5cd154 Set correct direction arrow from order with NULLS extra parameter
Arrows direction icons in treeview are defined by ASC or DESC keywords. When
using an order with composed sentence eg. "DESC NULLS FIRST", we need to
extract first word to get arrow direction keyword.

issue9587
review296211002
2020-09-22 10:18:39 +02:00
Cédric Krier 12deead274 Use readonly screen to display Many2Many widget
The Many2Many widget should not allow the user to edit the records.
The One2Many widget should be used instead.

issue9574
review290891002
2020-09-18 00:07:58 +02:00
Cédric Krier 5c952fb8be Send client email via server
issue9449
review292001002
2020-09-17 17:18:02 +02:00
Cédric Krier 34d82ad620 Support PYSON comparison of date and datetime
issue4879
review270061002
2020-09-05 22:59:38 +02:00
Cédric Krier 9864c9e7e7 Connect to button-press-event to fill the favorite menu
The menu must be filled before the toggled event is triggered so we can not use
'clicked' nor 'toggled'. Indeed 'button-press-event' is the first one but we
must make the callback continue to propagate the event.

issue9530
review296051002
2020-08-16 16:31:23 +02:00
Cédric Krier 9dc71d1463 Document = shortcut on date/time widgets
issue9508
review290701002
2020-08-11 22:06:03 +02:00
Cédric Krier fd6c0ebb40 Restore automatic scrolling on wizard dialog
The scrolls are disable to compute the best size but if the result is too big,
we must allow user to scroll.

issue9494
review294221002
2020-08-10 23:21:03 +02:00
Cédric Krier fea3dd6067 Position copied records based on order
issue9474
review311851002
2020-07-25 00:49:32 +02:00
Cédric Krier 85911599dc Remove hard coded background color for title
issue9469
review300131007
2020-07-21 14:43:59 +02:00
Maxime Richez 969a3c11da Use name instead of rec_name for button_link action
Since issue9445, action values are explicitly defined. Default values for
actions are now: id, name, type and icon.rec_name. That's why we should use
name instead of rec_name.

issue9481
review310061002
2020-07-15 17:32:39 +02:00
Cédric Krier 4d7f0e7510 Remove custom code to support tunnel and SSL
issue9442
review309921002
2020-07-13 21:18:08 +02:00
Sergi Almacellas Abellana ff69aa7f5a Add set_editable on list view Cell
The method should be defined for on all widgets

issue9464
review298141002
2020-07-09 21:14:51 +02:00
David Harper a234c5b48e Do not refer to activated modules as installed
issue9395
review311721004
2020-07-09 10:33:42 +01:00
Cédric Krier 4973fb2adc Allow configuration of default colors for graph and calendar
issue9435
review300011002
2020-07-09 00:34:01 +02:00
Cédric Krier 61f4d1fac4 Normalize wizard message views
We use the proper icon between info, question, warning and error.
We remove the exclamation mark in info messages.

issue9429
review301831002
2020-07-09 00:21:48 +02:00
Sergi Almacellas Abellana c028787e8f Do not read rec_name of unsaved records
issue9308
review327381002
2020-07-06 17:40:34 +02:00
Cédric Krier e6f16b11f6 Use proper logger to warn about completion failure 2020-07-01 14:49:33 +02:00
Nicolas Évrard 3ebf9e6290 Use character length instead of bytes length when inserting text in NumberEntry
Using insert_text on GtkEntryBuffer must use the numbers of characters inserted
not the number of bytes.
Likewise Gtk.Editable's set_text must return the position in character not in
bytes.

issue9390
review321561002
2020-06-27 13:02:52 +02:00
Nicolas Évrard fcd11b3ef0 Synchronize cell and editable content in treeview
issue9227
review289791002
2020-06-19 11:38:10 +02:00
Cédric Krier 7073e0f822 Decode board action the same way as window action
The evaluation code should be the same to ensure same behavior.

issue9275
review303761007
2020-06-19 00:20:27 +02:00
Cédric Krier 663f887d51 Returns None when evaluating domain with None
We implement the same behavior as SQL with NULL which always returns NULL
except for IS operator. So the evaluation has the same result as the search.

issue8615
review290281002
2020-06-19 00:18:04 +02:00
Cédric Krier 4cee13f1a5 Update primary menu after changing the language
issue7955
review303761006
2020-06-12 12:39:17 +02:00
Cédric Krier 66c39b0106 Remove sphinx configuration
The HTML can be generated with sphinx-build -C . _build/html

issue9370
review295661002
2020-06-06 14:04:01 +02:00
Cédric Krier cabe936897 Use existing context for get_preferences
So we present to the user his current contextual values.
But we clear the context after modification.

issue9327
review301611002
2020-06-06 14:02:22 +02:00
Cédric Krier b0ace21327 Use only ascii as translation source
issue9358
review290111002
2020-05-21 09:10:46 +02:00
Cédric Krier 5cba0eadc0 Add context to export URL
issue9304
review317361002
2020-05-19 19:36:09 +02:00
Cédric Krier c2c5388781 Backed out changeset 1748347abb2f 2020-05-19 19:32:33 +02:00
Cédric Krier d1c1839bc8 Add context to export URL
issue9304
review317361002
2020-05-19 18:57:53 +02:00
Cédric Krier 9742048dfb Add bits to check version name on win32
issue9297
review289981002
2020-05-10 11:21:25 +02:00
Nicolas Évrard a868b57fc2 Prevent toggling the checkbox when the original record is not valid
issue9280
review319351002
2020-05-05 16:44:53 +02:00