Commit Graph
1524 Commits
Author SHA1 Message Date
Cédric Krier 4b615af2a2 Position infobar to avoid overlap nav-tab and toolbar
issue9620
review310511002
2020-10-04 00:42:37 +02:00
Cédric Krier 2ceef3eefc Close info bar when clicking on it
issue9621
review318281002
2020-10-04 00:41:11 +02:00
Cédric Krier e98ab85f15 Animate processing dots
issue9619
review304291002
2020-10-04 00:39:12 +02:00
Cédric Krier 137852452e Fallback to model name as title
issue9596
review300381002
2020-10-04 00:35:23 +02:00
Cédric Krier 4f5c7d8af2 Remove overflow on fieldset when dropdown is shown
issue9626
review314311002
2020-10-03 23:42:18 +02:00
Cédric Krier 1b324d7753 Stick the footer of tree view to the bottom
We do not need any more to display the label of the footer as the header is
always visible.
On small screen, the footer is stick on top and the label is displayed again.
The data-title is removed because it is not used.

issue9593
review296221003
2020-09-27 18:15:57 +02:00
Cédric Krier 45cd8edd50 Call Group.changed only once for all deleted records
issue9590
review328041002
2020-09-27 18:14:01 +02:00
Cédric Krier 056e43717e Use ISO string format for timeseries graph
c3 does not support moment but only string with a specific format.
We implement .toString on the moment prototype because form widgets does not
use Sao.Date nor Sao.DateTime. This ensures that calling .toString will always
return the ISO format.
And finally the x field type is retrieved from the model instead of the
attribute which is no more filled since changeset 2fc36d9e359b

issue9539
review296221002
2020-09-27 12:29:38 +02:00
Cédric Krier b9cb36591e 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 4eacdc96e2 Add get, in_ and contains method to PYSON
issue9576
review319911002
2020-09-24 22:56:58 +02:00
Cédric Krier 90bef2751e Display the full path of select fields to export
issue9595
review323971003
2020-09-24 22:43:50 +02:00
Cédric Krier 3e1e7bc735 Use Map to store sum widgets per column
The field name is not a unique key to store the sum widgets, we must use a Map
to allow the same field being rendered multiple times with sum attribute.

issue9592
review315951002
2020-09-24 22:40:54 +02:00
Nicolas Évrard 6fcfb943a5 Manage deletable and writable state from ir.rule
issue9357
review290101002
2020-09-23 10:04:19 +02:00
Maxime Richez ac25073669 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 e3106f7099 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 d9242e3a6b Send client email via server
issue9449
review292001002
2020-09-17 17:18:02 +02:00
Cédric Krier 5b674ad987 Always encode CSV export in UTF-8
Browsers do not support the charset in Blob, so it is already always encoded in
UTF-8. But to help users on Windows, we add the UTF-8 BOM because Windows
programs use it as magic number to detect encoding.

issue9527
review290761002
2020-09-12 18:30:11 +02:00
Cédric Krier 2d3374b873 Use modal body maximum height to compute treeview height
issue9551
review314171002
2020-09-12 18:28:22 +02:00
Cédric Krier 92bc8835db Do not monkey patch datetimepicker if not loaded
The tests does not load graphical libraries so datetimepicker can not be
loaded.
issue9455
2020-09-12 10:41:34 +02:00
Cédric Krier 8b111b8fbd Use tempusdominus and Popper for date time picker
issue9455
review327751002
2020-09-12 09:58:20 +02:00
Diego Abad 5365329fba Do not override page icon with text
issue9578
review296181002
2020-09-12 01:25:35 +02:00
Cédric Krier f7d2c114dc Add support for UTC Date for testing purpose
The tests may depend on the timezone of the browser so we need a way to write
tests as UTC only.

issue9577
review298511002
2020-09-09 23:25:24 +02:00
Cédric Krier 523fdbca0d Support PYSON comparison of date and datetime
issue4879
review270061002
2020-09-05 22:59:38 +02:00
Cédric Krier 66235b257f Use unique ID for bookmark button
issue9552
review318091002
2020-08-29 18:29:15 +02:00
Cédric Krier cf0a25b6dd Ensure sticky header is displayed above the content
issue9550
review292161002
2020-08-29 18:28:12 +02:00
Cédric Krier b36da567df Customize default bootstrap theme
The bootstrap rules are imported from sao less file to override some variables.
We embed a stripped version of the bootswatch paper theme.
We also try to import an option custom.less file.

issue9427
review294011002
2020-08-16 17:43:21 +02:00
Cédric Krier 41232df6bc Disable menu button when user has no access right
Since rev c2b74d2ff7ed, the variable name does not contains the button name so
the test for menu_buttons always fails.

issue9528
review310221002
2020-08-16 16:32:59 +02:00
Cédric Krier 36ab2dd7a5 Set field's name as input's name attribute
This makes the browser autocomplete suggestion smarter.

issue9461
review325741002
2020-08-05 00:30:02 +02:00
Cédric Krier 0e8c6b4c78 Do not set 'undefined' as button class
The precedence between the + operator and the || makes that the undefined size
is appended to the class string instead of the empty string.

issue9499
review310111002
2020-08-03 00:03:15 +02:00
Cédric Krier 88403e54a1 Test length for menu parents
issue9454
2020-07-31 10:33:56 +02:00
Cédric Krier 86fc6a581a Position copied records based on order
issue9474
review311851002
2020-07-25 00:49:32 +02:00
Cédric Krier b12ac9648b Align tab content bottom border with menu border
We remove the margin bottom on panel to gain 20px on the treeview height
calculation.
We compute the height of the treeview taking into account the padding and
box-shadow of the parents.

issue9454
review300091002
2020-07-21 14:42:32 +02:00
Cédric Krier 5f66219c7a Bind make_product to this
issue9489
review292081002
2020-07-21 14:30:37 +02:00
Maxime Richez e7903f8c02 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 878a67a9ae Use proper alert context for concurrency and error
issue9430
review303811002
2020-07-13 21:14:27 +02:00
Cédric Krier e0a1381c3f Sanitize translated RichtText fields content
issue9453
review305991002
2020-07-10 09:00:01 +02:00
Cédric Krier 4539fccb2b Allow configuration of default colors for graph and calendar
issue9435
review300011002
2020-07-09 00:34:01 +02:00
Cédric Krier ccc86922f9 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 41efe00ace Do not read rec_name of unsaved records
issue9308
review327381002
2020-07-06 17:40:28 +02:00
Sergi Almacellas Abellana 19ca791323 Append event description using a span attribute
issue9419
review313811002
2020-07-04 19:56:25 +02:00
Sergi Almacellas Abellana c9b5bea7cb Use jQuery.isEmptyObject to test xxx2Many required
issue9416
review317651003
2020-07-04 19:53:31 +02:00
Nicolas Évrard 7cb4222199 Sanitize RichtText fields content
issue9405
review327451002
2020-06-29 17:33:06 +02:00
Cédric Krier 8d1fe05de0 Escape external strings
issue9394
review293931002
2020-06-29 17:29:45 +02:00
Cédric Krier 4f21458068 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 eda93a21ed 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
Sergi Almacellas Abellana 815cc31e66 Only toggle csv parameters when clicking on it's label
issue9372
review305731002
2020-06-17 13:51:41 +02:00
Cédric Krier e898419e8f Use existing context for get_preferences and keep it in sessionStorage
So we present to the user his current contextual values.
But we clear the context after modification.

issue9327
review299651002
2020-06-06 14:01:51 +02:00
Sergi Almacellas Abellana 9feccfba49 Do not override icons with text
issue9388
review325521002
2020-06-05 19:12:53 +02:00
Sergi Almacellas Abellana 668fc7599b Allow html objects in autocompletion entries
issue9385
review317551002
2020-06-03 21:02:49 +02:00
Cédric Krier 5915d3d01a Bump bower version of pre-stable release 2020-06-01 09:29:02 +02:00