Search 1.9 billion lines of Odoo code on GitHub

workflow_activity_action

Author: ACSONE SA/NV
License: AGPL-3
Branch: 10.0-brb_master
Repository: acsone/acsone-addons
Dependencies: base, base_suspend_security, and web
Languages: JavaScript (80, 16.9%), Python (221, 46.6%), XML (118, 24.9%), and reStructuredText (55, 11.6%)
Other branches: 10.0-workflow-task-lmi, 8.0-exq_master, 8.0-lih_master, 8.0-rule-on-task-ape, 8.0-workflow-task-cache-ape, 8.0-workflow-task-sbi, 9.0-brb_master, 9.0-slg_master, 9.0-workflow-taks-filter-search-field-lmi, 9.0-workflow-task-sbi, brb_master, exq_master, lih_master, and lis_master
Other repositories: MadsackMediaStore/acsone-addons, Nowheresly/acsone-addons, OdooBulgaria/acsone-addons, garzadekoster/acsone-addons, initOS/acsone-addons, ismaelcj/acsone-addons, jalaludin/acsone-addons, microcom/acsone-addons, nucleoosystem/acsone-addons, salvatoretrimarchi/acsone-addons, tate11/acsone-addons, and xamulap/acsone-addons

<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="workflow-activity-action"></a> <h2>Workflow activity action</h2> <p>This module adds the concept of actions directly on the activities of an object.</p> <p>It is now possible to define a list of actions on workflow activities. Currently, these actions are configured as Odoo server action.</p> <p>Once defined actions on activities, it is possible to use these ones directly on the object associated with the activity. technically, it is necessary to make an inheritance of an abstract model and to add a field in the view of the object concerned.</p> <p>You can define two types of security rules for the actions of management.</p> <ol class="arabic simple"> <li>It is possible to define a security group list on the activity. For a user to perform an action on that activity, it must be defined in at least one group.</li> <li>In addition to the first level, it is possible to define a list of activity record rule. The evaluation process of these security rules is similar to the ir.rule model.</li> </ol> <p>Once the rules are evaluated, the actions are performed by super user (with base_suspend_security module)</p> <a name="usage"></a> <h3>Usage</h3> <p>Here is an example implementation on account.invoice model.</p> <ul> <li><p class="first">A python class</p> <pre> <code>from openerp import fields, models class AccountInvoice(models.Model) _name = 'account.invoice' _inherit = ['accont.invoice', 'workflow.action.model']</code> </pre> </li> <li><p class="first">An XML view</p> <pre> <code>&lt;record model=&quot;ir.ui.view&quot; id=&quot;invoice_form&quot;&gt; &lt;field name=&quot;name&quot;&gt;account.invoice.form&lt;/field&gt; &lt;field name=&quot;model&quot;&gt;account.invoice&lt;/field&gt; &lt;field name=&quot;inherit_id&quot; ref=&quot;account.invoice_form&quot; /&gt; &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt; &lt;xpath expr=&quot;//header&quot; position=&quot;attributes&quot;&gt; &lt;attribute name=&quot;invisible&quot;&gt;1&lt;/attribute&gt; &lt;/xpath&gt; &lt;xpath expr=&quot;//header&quot; position=&quot;after&quot;&gt; &lt;header&gt; &lt;field name=&quot;activity_action_ids&quot; widget=&quot;many2many_action_buttons&quot; /&gt; &lt;field name=&quot;state&quot; widget=&quot;statusbar&quot;/&gt; &lt;/header&gt; &lt;/xpath&gt; &lt;/field&gt; &lt;/record&gt;</code> </pre> </li> <li><p class="first">Configuration of activities:</p> <blockquote> <div class="figure"> <img alt="Configuration of activities" src="static/description/workflow_activity_action_1.png" /> </div> </blockquote> </li> <li><p class="first">Add a server action on activity</p> <blockquote> <div class="figure"> <img alt="Add a server action on activity" src="static/description/workflow_activity_action_2.png" /> </div> </blockquote> </li> <li><p class="first">Using actions directly on the object:</p> <blockquote> <div class="figure"> <img alt="Using actions directly on the object" src="static/description/workflow_activity_action_3.png" /> </div> </blockquote> </li> </ul> <a name="credits"></a> <h3>Credits</h3> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Stéphane Bidoul &lt;<a class="reference external" href="mailto:stephane.bidoul&#64;acsone.eu">stephane.bidoul&#64;acsone.eu</a>&gt;</li> <li>Adrien Peiffer &lt;<a class="reference external" href="mailto:adrien.peiffer&#64;acsone.eu">adrien.peiffer&#64;acsone.eu</a>&gt;</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <a class="reference external image-reference" href="http://www.acsone.eu"><img alt="ACSONE SA/NV" src="https://www.acsone.eu/logo.png" /></a> <p>This module is maintained by ACSONE SA/NV.</p>