{"id":21171606,"url":"https://github.com/0k/model_refresh_stored","last_synced_at":"2025-10-29T21:18:16.445Z","repository":{"id":22637690,"uuid":"25980500","full_name":"0k/model_refresh_stored","owner":"0k","description":"Openerp/Odoo module to request recalculation of stored values.","archived":false,"fork":false,"pushed_at":"2014-10-31T02:59:48.000Z","size":140,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-14T17:44:24.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0k.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-30T16:50:14.000Z","updated_at":"2016-12-20T10:27:47.000Z","dependencies_parsed_at":"2022-07-27T03:02:22.489Z","dependency_job_id":null,"html_url":"https://github.com/0k/model_refresh_stored","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/0k/model_refresh_stored","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fmodel_refresh_stored","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fmodel_refresh_stored/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fmodel_refresh_stored/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fmodel_refresh_stored/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0k","download_url":"https://codeload.github.com/0k/model_refresh_stored/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fmodel_refresh_stored/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281699713,"owners_count":26546371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T16:08:42.943Z","updated_at":"2025-10-29T21:18:16.407Z","avatar_url":"https://github.com/0k.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\nRefresh Stored Values\n=====================\n\nProvides a simple button at the bottom of the form view of model objects which\nrefresh all stored values for this model.\n\nThis module is really small and can be used as a good way to learn OpenERP/Odoo\nmodule creation.\n\nBesides, it could be handy to have this in hand while developping other modules.\n\n\nTodo\n----\n\n- add the button in the one2many view of each fields of a model to\n  offer a \"per field\" refresh.\n\n\nRequirements\n------------\n\nWas tested successfully with:\n\n - OpenERP 7.0\n - OpenERP/Odoo 8.0\n\n\nInstallation\n------------\n\nPlease make sure to launch:\n\n  ./autogen.sh\n\nprior to installing this module to generate the version and the changelog.\n\nThen you can install it as any other OpenERP/Odoo module.\n\n\nUsage\n-----\n\nGUI\n\"\"\"\n\n1. Ensure that you are are an OpenERP administrator with Extended Interface.\n2. Then go to the \"Settings\" Tab,\n3. And in the left menu, follow Technical / Database Structure / Models\n4. On any model (previously created or newly created) you'll find a new button\n   on the top called \"Refresh Stored Values\".  Upon click, all stored function\n   will get recomputed.\n\nCommand line\n\"\"\"\"\"\"\"\"\"\"\"\"\n\nA command line is provided, but you should be warned that it required\n``docopt`` and ``ooop``. You can install them both thanks to:\n\n    pip install docopt ooop\n\nThe command line allows you to query a distant openerp server and force\nrecalculating stored function field on a per record basis. This can provide\nusefull if you don't want to recalculate all records.\n\nYou can::\n\n    ./restore --help\n\nTo get a full help options. Here's an example of usage::\n\n    $ OE_USER=admin OE_PASSWORD=dev OE_DB=test_restore bin/restore project.task --domain \"[('name', '=', 't1')]\"\n    project.task:1 forced refresh of stored value for function 'active'\n    project.task:1 forced refresh of stored value for function 'effective_hours'\n    project.task:1 forced refresh of stored value for function 'total_hours'\n    project.task:1 forced refresh of stored value for function 'delay_hours'\n    project.task:1 forced refresh of stored value for function 'progress'\n    $\n\nA few handy shortcuts are provided as documented::\n\n    $ bin/restore --help\n    Re-calculate stored values for given objects.\n\n    Usage:\n        restore (-h | --help)\n        restore MODEL [--after DATE | --id IDS] [--limit MAX] [--domain DOMAIN]\n\n    Options:\n        -h, --help           Show this screen\n        --after DATE         Filters model by created or write date after given DATE\n        --id IDS             Filters model to given ids\n        --domain DOMAIN      Ignore existing domain and use DOMAIN instead\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0k%2Fmodel_refresh_stored","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0k%2Fmodel_refresh_stored","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0k%2Fmodel_refresh_stored/lists"}