Restructure module following guidelines.

pull/12/head
Jairo Llopis 2015-10-06 11:04:20 +02:00
parent ec78bb9d12
commit 5d6c86cc38
6 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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",

View File

@ -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

View File

@ -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

View File

@ -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(

View File

@ -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"/>