Browse Source
Get referenceable modules from res.request.link.
Get referenceable modules from res.request.link.
This follows better the Odoo standard and makes it easier to configure by the administrator.pull/12/head
Jairo Llopis
9 years ago
7 changed files with 85 additions and 57 deletions
-
51mail_forward/README.rst
-
2mail_forward/__init__.py
-
7mail_forward/__openerp__.py
-
14mail_forward/models.py
-
32mail_forward/views/res_request_link.xml
-
5mail_forward/wizard/__init__.py
-
31mail_forward/wizard/mail_forward.py
@ -0,0 +1,14 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2014-2015 Grupo ESOC <www.grupoesoc.es> |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from openerp import fields, models |
|||
|
|||
|
|||
class IrModel(models.Model): |
|||
_inherit = "res.request.link" |
|||
|
|||
mail_forward_target = fields.Boolean( |
|||
default=True, |
|||
index=True, |
|||
help="Allow to forward mails to this model.") |
@ -0,0 +1,32 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
|
|||
<!-- © 2014-2015 Grupo ESOC <www.grupoesoc.es> |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
|||
|
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="res_request_link_view_form" model="ir.ui.view"> |
|||
<field name="name">Add option to forward mails</field> |
|||
<field name="model">res.request.link</field> |
|||
<field name="inherit_id" ref="base.res_request_link-view"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='priority']" position="after"> |
|||
<field name="mail_forward_target"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="res_request_link_view_tree" model="ir.ui.view"> |
|||
<field name="name">Add option to forward mails</field> |
|||
<field name="model">res.request.link</field> |
|||
<field name="inherit_id" ref="base.res_request_link_tree-view"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='object']" position="after"> |
|||
<field name="mail_forward_target"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
@ -0,0 +1,5 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2014-2015 Grupo ESOC <www.grupoesoc.es> |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import mail_forward |
Write
Preview
Loading…
Cancel
Save
Reference in new issue