Search 1.9 billion lines of Odoo code on GitHub

base_change_trigger

Author: Therp BV, Odoo Community Association (OCA)
License: AGPL-3
Branch: 10.0-base_update_trigger
Repository: NL66278/server-tools
Dependencies: base
Languages: Python (120, 75.0%), and reStructuredText (40, 25.0%)

<a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> </a> <a name="base-active-date"></a> <h2>Base Active Date</h2> <p>This module provides an mixin model, active.date, that provides an active field that is computed, based on a start date and an end date. A cron job is provided that will recompute the active state every night. There is also a provision for on the fly recomputation.</p> <a name="fields-provided-by-this-mixin"></a> <h3>Fields provided by this mixin</h3> <ul class="simple"> <li>active - computed from start- and enddate</li> <li>active_date_start</li> <li>active_date_end</li> </ul> <p>A record is active when current date greater then or equal to startdate, or startdate nt filled, and when date less then enddate or enddate not filled</p> <a name="methods-provided-by-this-mixin"></a> <h3>Methods provided by this mixin</h3> <ul class="simple"> <li>_compute_active - will compute active from start- and enddates. Can be overridden in inheriting models.</li> <li>active_refresh - can be called to recompute active for all records in model</li> </ul> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/149/10.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="bug-tracker"></a> <h4>Bug Tracker</h4> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported.</p> <a name="images"></a> <h3>Images</h3> <ul class="simple"> <li>Odoo Community Association: <a class="reference external" href="https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg">Icon</a>.</li> </ul> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Ronald Portier &lt;<a class="reference external" href="mailto:ronald&#64;therp.nl">ronald&#64;therp.nl</a>&gt;</li> </ul> <a name="maintainer"></a> <h3>Maintainer</h3> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>This module is maintained by the OCA.</p> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>