Database Limit Size
This module allows blocking backend access when database limit is exceeded
On loading backend page, module fetches size of database (including filestore) and compares it with value, that is defined in "System Parameters" as database_limit_size. Value is expected to be in bytes.
If database_limit_size is not given or zero, there is no limit.
Roadmap
- Customize percentage of the limit which, if exceeded, would indicate a warning. As for now it is hardcoded to 90%
Questions?
To get an assistance on this module contact us by email apps@it-projects.info
Contributors
- Eugene Molotov:
Further information
Odoo Apps Store: https://apps.odoo.com/apps/modules/12.0/itp_database_limit_size/
Tested on Odoo 12.0
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Community Apps Dependencies | Show |
| Lines of code | 108 |
| Technical Name |
itp_database_limit_size |
| License | See License tab |
| Website | https://it-projects.info |
Database Limit Size
Installation
- Install this module in a usual way
Configuration
- `Log in as admin
- Activate Developer Mode
- Open menu [[ Settings ]] >> Technical >> System Parameter
- Edit existing record by key database_limit_size or create new one
- Set integer value, click "Save" and reload web page
- If you set small nonzero value (for example "1" without quotes), "Database size exceed" will appear and will disable navigating
- If you set value that is less than actual database size, but greater than 90% of actual database size and web_responsive is installed, you will see warning message "Database size is about to be exceed"
The MIT License (MIT) Copyright 2020 IT-Projects Labs Copyright 2015-2020 IT-Projects LLC Copyright 2014-2015 Ivan Yelizariev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module