Search 1.9 billion lines of Odoo code on GitHub

mail_activity_form

Author: Hunki Enterprises BV, Odoo Community Association (OCA)
License: AGPL-3
Branch: 13.0
Repository: acsone/social
Dependencies: mail
Languages: HTML (365, 49.6%), Python (252, 34.2%), XML (36, 4.9%), and reStructuredText (83, 11.3%)
Other repositories: Change2improve/social, ForgeFlow/social, Jarsa/social, OCA/social, Tecnativa/social, adhoc-dev/social, aurestic/social, brain-tec/social, camptocamp/social, grindtildeath/social, hbrunn/social, and tegin/social

<h1 class="title">Simple forms in mail activities</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" 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.png" /></a> <a class="reference external" href="https://github.com/OCA/social/tree/13.0/mail_activity_form"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_activity_form"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/205/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module allows you to provide some markup in the <code>default_description</code> field of <code>mail.activity.type</code>, which makes some portions of the <code>note</code> field of resulting <code>mail.activity</code> records editable and others computed.</p> <p>With this, you can implement form based workflows where you have to fill in certain forms at certain times, and have to prove later what you filled in when as mail activities, while still being able to access the data filled in programmatically afterwards.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#usage" id="id1">Usage</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id2">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id5">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id1">Usage</a></h2> <p>This module adds some attributes that can be used in the <code>default_description</code> field of <code>mail.activity.type</code>:</p> <dl class="docutils"> <dt>data-form-id</dt> <dd>A name used to refer to the content of this node afterwards</dd> <dt>data-form-type</dt> <dd>One of 'float', 'int', 'str'</dd> <dt>data-form-editable</dt> <dd>Only nodes marked with this attribute may be edited in activities</dd> <dt>data-form-compute</dt> <dd>An expression to evaluate, <code>object</code> can be used to access values of the object the activity is attached to, and <code>activity</code> for the activity itself</dd> </dl> <p>Note that the above implies that you shouldn't use <code>object</code> and <code>activity</code> in the <code>data-form-id</code> attribute.</p> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id2">Known issues / Roadmap</a></h2> <ul class="simple"> <li>client side support for editing attributes without switching to the source code view</li> <li>client side support for blocking edits to non-editable nodes</li> <li>client side support for updating computed nodes on input</li> <li>better error messages for wrong types/names</li> </ul> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id3">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_activity_form%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id4">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id5">Authors</a></h3> <ul class="simple"> <li>Hunki Enterprises BV</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul class="simple"> <li>Holger Brunn &lt;<a class="reference external" href="mailto:mail&#64;hunki-enterprises.com">mail&#64;hunki-enterprises.com</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <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>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>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/13.0/mail_activity_form">OCA/social</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>