Commit Graph

42 Commits

Author SHA1 Message Date
Sylvain LE GAL
b2d4e1f3b3 [IMP] bi_sql_editor: allow to generate form view. So It is possible to see data detail, when clicking on an item in a tree view
- update / create tree and form view once all the models are loaded, to avoid errors because fields are not available
2024-07-23 10:37:22 +02:00
GuillemCForgeFlow
6c3534e942 [IMP]bi_sql_editor: add parent menu as an editable parameter when creating UI elements
When creating the UI for the SQL view, it is now possible to set a specific Parent Menu which will be used when creating the UI Menu for the report itself. The default value will be the `SQL Reports` menu.
Also, added the explanation on the `CONFIGURE.rst` file to have the description updated.
2024-06-06 12:29:00 +02:00
Pedro M. Baeza
2c477d0765 [FIX] *: line too long 2024-05-02 17:37:31 +02:00
chien
c8471a0f63 [MIG] bi_sql_editor: Migration to 17.0 2023-12-22 09:15:47 +07:00
Sylvain LE GAL
7ec031d936 [REM] bi_sql_editor : option_context_field field, as it is now possible to implement that feature with optional='hide' on the field list view 2023-12-21 09:42:43 +07:00
Sylvain LE GAL
a8fb06f16e [IMP] bi_sql_editor : allow to reset to the previous state, and not only into 'draft' state 2023-12-21 09:42:28 +07:00
Sylvain LE GAL
36e85061f1 [FIX] bi_sql_editor : do not allow to create model (and sql views) if related model are not set on many2one fields. It prevents the error 'AttributeError: '_unknown' object has no attribute 'id'' 2023-12-21 09:42:10 +07:00
Sylvain LE GAL
b6f4b8870f [REF] bi_sql_editor : Make test independant
[FIX] bi_sql_editor : allow to pass default values in copy() function
2023-12-21 09:41:35 +07:00
chien
66428495c9 [IMP] bi_sql_editor: pre-commit auto fixes 2023-12-19 10:58:13 +07:00
Denis Leemann
e9a1446a34 [16.0][FIX][bi_sql_editor] unlink bi_sql_view without cron
Forward port of https://github.com/OCA/reporting-engine/pull/811
2023-12-18 17:57:23 +07:00
Pierrick Brun
60de210dff [FIX] unlink bi_sql_view without cron 2023-12-18 17:57:23 +07:00
Omega TMM
ea4a6e4324 Update bi_sql_view.py 2023-12-18 17:57:23 +07:00
Sylvain LE GAL
96f4d069b0 [IMP] bi_sql_editor : add field context 2023-12-18 17:57:23 +07:00
Paulius Sladkevičius
160c7c873d [IMP] bi_sql_editor manual field check performance
The `table_columns()` slows down modules loading significantly up to 2-3x.
In most cases `model._name.startswith(self._model_prefix)` returns `False`, so better to check it first.
2023-12-18 17:57:23 +07:00
Sylvain LE GAL
2766be4057 [MIG] bi_sql_editor : from 15.0 to 16.0
- move menu and action in according view file
- use new sql_request_abstract menu entry for SQL views configuration
- Use sql_request_abstract primary tree view
- Use sql_request_abstract primary form view
- move has_grouped_changed in sql_request_abstract module
- improve demo data
- add default count value to display in pivot, if no pivot_measures are defined ;
- set widget handle to sequence field
- reorder fields in tree view and add optional hide for some fields
- simplify : make field_description field required
- improve : add optional='hide' and 'show' on tree visibility
- replace obsolete base.menu_board_root by spreadsheet_dashboard entries
- update translation
2023-12-18 17:57:23 +07:00
Laurent Mignon (ACSONE)
bcb58e98b2 [IMP] bi_sql_editor: Remove useless monkeypatch
On class creation by the ORM of 'manual' model, odoo now check if the table is a real table or a view to automatically set the '_auto' property on the class definition. We can therefore remove the monkey patch on 'ir.model'.

see 17c4f47b0a
2023-12-18 17:57:23 +07:00
mariadforgeflow
26bc8bcbee [MIG] bi_sql_editor: Migration to 15.0 2023-12-18 17:57:23 +07:00
mariadforgeflow
6e9d6111b0 [IMP] bi_sql_editor: black, isort, prettier 2023-12-18 17:57:23 +07:00
David James
44eaffaf41 bi_sql_editor: add support for group operators
this commit allows specifying the group operator for each field. This functionality was originally included in a seperate module "bi_sql_editor_aggregate" in version 12.
2023-12-18 17:57:23 +07:00
David James
52d3e86a37 bi_sql_editor: Migration to 14.0 2023-12-18 17:57:23 +07:00
David James
3deb9541bd [IMP] bi_sql_editor: black, isort, prettier 2023-12-18 17:57:23 +07:00
HviorForgeFlow
9d1c79f4f9 [MIG] bi_sql_editor: Migration to 13.0 2023-12-18 17:57:23 +07:00
HviorForgeFlow
535a2c1820 [IMP] bi_sql_editor: black, isort, prettier 2023-12-18 17:57:23 +07:00
Sylvain LE GAL
741f260743 [IMP] bi_sql_editor : conserve cron settings, when setting materialized view to draft ; Set correct default values for cron and enable it 2023-12-18 17:57:23 +07:00
Sylvain LE GAL
c077720868 [FIX] bi_sql_editor : handle correctly translation for action name 2023-12-18 17:57:23 +07:00
Sylvain LE GAL
8adb402c15 [WIP] imp bi_sql_editor 2023-12-18 17:57:23 +07:00
Sylvain LE GAL
14d8c88e65 [ADD] action context 2023-12-18 17:57:23 +07:00
Adrià Gil Sorribes
c5a15091d6 [12.0][MIG] Migrate module bi_sql_editor to v12 2023-12-18 17:57:23 +07:00
mreficent
ae2186c79b [FIX] Solves the upgrading problem 2023-12-18 17:57:23 +07:00
mreficent
d0bc467bf6 [IMP] remove unneeded parenthesis 2023-12-18 17:57:23 +07:00
mreficent
1144f86c27 [FIX] ir.cron relation 2023-12-18 17:57:23 +07:00
hveficent
e05d1ac327 [FIX] Can be upgraded with materialized views generated 2023-12-18 17:57:23 +07:00
hveficent
ab9c97f45e [MIG] bi_sql_editor: Migration to 11.0 2023-12-18 17:57:23 +07:00
Sylvain LE GAL
d7c2854653 10.0 imp bi sql editor (#1)
* [IMP] is_materialized field non readonly on sql_valid state ; [FIX] block possibility to set indexes on non materialized view

* [FIX] set domain_force, group_ids readonly if state > sql_valid

* [IMP] better display of the field group_ids

* [IMP] possibility to reorder menu items from sql views

* [IMP] Do not warn user when setting sql view to draft if state is sql_valid

* [REF]

* [FIX] Set Date of the first execution in the action name
2023-12-18 17:57:23 +07:00
Patrick Tombez
d8d5f41cdb Fix several issues
Fix error '... is not a table or foreign table'
Fix view (colors + oe_highlight)
Fix tests
Fix README + manifest
Fix back to draft
Fix cron call + default values
Use Postgres version 9.6 for travis builds
2023-12-18 17:57:23 +07:00
Darshan Patel
872e93ac06 [IMP] preview button 2023-12-18 17:57:23 +07:00
Darshan Patel
afb9e31cec [MIG] bi_sql_editor v10 2023-12-18 17:57:23 +07:00
nicomacr
426066c6cd FIX bi_sql_editor 2023-12-18 17:57:23 +07:00
aheficent
5190269fb5 [IMP] Add test + several fixes 2023-12-18 17:57:23 +07:00
Sylvain LE GAL
6083d5b5d9 create ui now create tree view [IMP] fr translation [IMP] add last refresh date time on the action name of each sql materialized view 2023-12-18 17:57:23 +07:00
nicomacr
09d835843d bi_sql_editor 2023-12-18 17:57:23 +07:00
Sylvain LE GAL
3e5085f1a9 new module bi_sql_editor [IMP] function to guess model for many2one field; [ADD] security 2023-12-18 17:57:23 +07:00