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> # © 2014-2015 Grupo ESOC <www.grupoesoc.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # 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": [ "data": [
"views/assets.xml", "views/assets.xml",
"views/compose_message.xml",
"views/res_request_link.xml", "views/res_request_link.xml",
"wizard/mail_forward.xml",
], ],
"qweb": [ "qweb": [
"static/src/xml/mail_forward.xml", "static/src/xml/mail_forward.xml",

View File

@ -2,4 +2,4 @@
# © 2014-2015 Grupo ESOC <www.grupoesoc.es> # © 2014-2015 Grupo ESOC <www.grupoesoc.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # 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 It duplicates the message and optionally attaches it to another object
of the database and sends it to another recipients than the original one. 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"} _inherits = {"mail.compose.message": "original_wizard_id"}
@api.model @api.model

View File

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

View File

@ -8,7 +8,7 @@
<record id="compose_form" model="ir.ui.view"> <record id="compose_form" model="ir.ui.view">
<field name="name">Forward Email Form</field> <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="inherit_id" ref="mail.email_compose_message_wizard_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<data> <data>
@ -51,7 +51,7 @@
<record id="compose_action" model="ir.actions.act_window"> <record id="compose_action" model="ir.actions.act_window">
<field name="name">Forward Email</field> <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="src_model">mail.message</field>
<field name="type">ir.actions.act_window</field> <field name="type">ir.actions.act_window</field>
<field name="view_id" ref="compose_form"/> <field name="view_id" ref="compose_form"/>