Commit Graph

33 Commits

Author SHA1 Message Date
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