Browse Source

Restructure module following guidelines.

pull/12/head
Jairo Llopis 9 years ago
parent
commit
5d6c86cc38
  1. 2
      mail_forward/__init__.py
  2. 2
      mail_forward/__openerp__.py
  3. 2
      mail_forward/models/__init__.py
  4. 2
      mail_forward/models/compose_message.py
  5. 2
      mail_forward/models/res_request_link.py
  6. 4
      mail_forward/views/compose_message.xml

2
mail_forward/__init__.py

@ -2,4 +2,4 @@
# © 2014-2015 Grupo ESOC <www.grupoesoc.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models, wizard
from . import models

2
mail_forward/__openerp__.py

@ -18,8 +18,8 @@
],
"data": [
"views/assets.xml",
"views/compose_message.xml",
"views/res_request_link.xml",
"wizard/mail_forward.xml",
],
"qweb": [
"static/src/xml/mail_forward.xml",

2
mail_forward/wizard/__init__.py → mail_forward/models/__init__.py

@ -2,4 +2,4 @@
# © 2014-2015 Grupo ESOC <www.grupoesoc.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import mail_forward
from . import compose_message, res_request_link

2
mail_forward/wizard/mail_forward.py → mail_forward/models/compose_message.py

@ -11,7 +11,7 @@ class MailForwardComposeMessage(models.TransientModel):
It duplicates the message and optionally attaches it to another object
of the database and sends it to another recipients than the original one.
"""
_name = "mail_forward.compose.message"
_name = "mail_forward.compose_message"
_inherits = {"mail.compose.message": "original_wizard_id"}
@api.model

2
mail_forward/models.py → mail_forward/models/res_request_link.py

@ -5,7 +5,7 @@
from openerp import fields, models
class IrModel(models.Model):
class ResRequestLink(models.Model):
_inherit = "res.request.link"
mail_forward_target = fields.Boolean(

4
mail_forward/wizard/mail_forward.xml → mail_forward/views/compose_message.xml

@ -8,7 +8,7 @@
<record id="compose_form" model="ir.ui.view">
<field name="name">Forward Email Form</field>
<field name="model">mail_forward.compose.message</field>
<field name="model">mail_forward.compose_message</field>
<field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
<field name="arch" type="xml">
<data>
@ -51,7 +51,7 @@
<record id="compose_action" model="ir.actions.act_window">
<field name="name">Forward Email</field>
<field name="res_model">mail_forward.compose.message</field>
<field name="res_model">mail_forward.compose_message</field>
<field name="src_model">mail.message</field>
<field name="type">ir.actions.act_window</field>
<field name="view_id" ref="compose_form"/>
Loading…
Cancel
Save