Browse Source
[FIX] archives.js, base.js - corrections related to inheritance
[FIX] archives.js, base.js - corrections related to inheritance
[FIX] README.rst - more precisely worded description and added sha value [FIX] models.py, res_partner_mails_count.xml, views.xml - removed unused code [FIX] __openerp__.py - stylingpull/6/head
x620
9 years ago
11 changed files with 98 additions and 180 deletions
-
4mail_archives/README.rst
-
2mail_archives/__openerp__.py
-
12mail_archives/models/models.py
-
17mail_archives/static/src/js/archives.js
-
18mail_archives/static/src/xml/menu.xml
-
59mail_archives/views/views.xml
-
5mail_base/README.rst
-
8mail_base/__openerp__.py
-
137mail_base/static/src/js/base.js
-
2res_partner_mails_count/README.rst
-
14res_partner_mails_count/views/res_partner_mails_count.xml
@ -1,15 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
from openerp import models, fields, api |
|||
|
|||
# class mail_arhives(models.Model): |
|||
# _name = 'mail_arhives.mail_arhives' |
|||
|
|||
# name = fields.Char() |
|||
# value = fields.Integer() |
|||
# value2 = fields.Float(compute="_value_pc", store=True) |
|||
# description = fields.Text() |
|||
# |
|||
# @api.depends('value') |
|||
# def _value_pc(self): |
|||
# self.value2 = float(self.value) / 100 |
@ -1,59 +1,4 @@ |
|||
<openerp> |
|||
<data> |
|||
<!-- explicit list view definition --> |
|||
<!-- |
|||
<record model="ir.ui.view" id="mail_arhives.list"> |
|||
<field name="name">mail_arhives list</field> |
|||
<field name="model">mail_arhives.mail_arhives</field> |
|||
<field name="arch" type="xml"> |
|||
<tree> |
|||
<field name="name"/> |
|||
<field name="value"/> |
|||
<field name="value2"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
--> |
|||
|
|||
<!-- actions opening views on models --> |
|||
<!-- |
|||
<record model="ir.actions.act_window" id="mail_arhives.action_window"> |
|||
<field name="name">mail_arhives window</field> |
|||
<field name="res_model">mail_arhives.mail_arhives</field> |
|||
<field name="view_mode">tree,form</field> |
|||
</record> |
|||
--> |
|||
|
|||
<!-- server action to the one above --> |
|||
<!-- |
|||
<record model="ir.actions.server" id="mail_arhives.action_server"> |
|||
<field name="name">mail_arhives server</field> |
|||
<field name="model_id" ref="model_mail_arhives_mail_arhives"/> |
|||
<field name="code"> |
|||
action = { |
|||
"type": "ir.actions.act_window", |
|||
"view_mode": "tree,form", |
|||
"res_model": self._name, |
|||
} |
|||
</field> |
|||
</record> |
|||
--> |
|||
|
|||
<!-- Top menu item --> |
|||
<!-- |
|||
<menuitem name="mail_arhives" id="mail_arhives.menu_root"/> |
|||
--> |
|||
<!-- menu categories --> |
|||
<!-- |
|||
<menuitem name="Menu 1" id="mail_arhives.menu_1" parent="mail_arhives.menu_root"/> |
|||
<menuitem name="Menu 2" id="mail_arhives.menu_2" parent="mail_arhives.menu_root"/> |
|||
--> |
|||
<!-- actions --> |
|||
<!-- |
|||
<menuitem name="List" id="mail_arhives.menu_1_list" parent="mail_arhives.menu_1" |
|||
action="mail_arhives.action_window"/> |
|||
<menuitem name="Server to list" id="mail_arhives" parent="mail_arhives.menu_2" |
|||
action="mail_arhives.action_server"/> |
|||
--> |
|||
</data> |
|||
<data> |
|||
</data> |
|||
</openerp> |
@ -1,11 +1,12 @@ |
|||
Mail Base |
|||
========= |
|||
|
|||
Module contain common code for other mail modules |
|||
Modules doesn't introduce new features, but make built-in mail js features extendable. |
|||
|
|||
Usage |
|||
----- |
|||
|
|||
To use this module you need either install module that depends on it or create new module. |
|||
|
|||
Further information |
|||
------------------- |
|||
Due to odoo restrictions, module makes mail initialization again. That is browser loads emoji and other chat data twice. This is the only way to make Mail feature extendable. |
Write
Preview
Loading…
Cancel
Save
Reference in new issue