[ADD] pad module
bzr revid: xmo@openerp.com-20101021090056-s37esucpv1nywayr
This commit is contained in:
parent
1c45afa7ab
commit
126c2103bc
|
@ -0,0 +1,15 @@
|
||||||
|
OpenERP, Open Source Management Solution
|
||||||
|
Copyright © 2010 OpenERP SA (<http://openerp.com>).
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as
|
||||||
|
published by the Free Software Foundation, either version 3 of the
|
||||||
|
License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public Lice
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
@ -0,0 +1,2 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import company_pad
|
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
{
|
||||||
|
'name': 'Enhanced support for (Ether)Pad attachments',
|
||||||
|
'version': '1.0',
|
||||||
|
'category': 'Generic Modules/Others',
|
||||||
|
'description': """
|
||||||
|
Adds enhanced support for (Ether)Pad attachments in the web client, lets the
|
||||||
|
company customize which Pad installation should be used to link to new pads
|
||||||
|
(by default, pad.openerp.com)
|
||||||
|
""",
|
||||||
|
'author': 'OpenERP SA',
|
||||||
|
'website': 'http://openerp.com',
|
||||||
|
'depends': ['base'],
|
||||||
|
'update_xml': [
|
||||||
|
'company_pad.xml'
|
||||||
|
],
|
||||||
|
'installable': True,
|
||||||
|
'active': False,
|
||||||
|
# 'web': True,
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from osv import fields, osv
|
||||||
|
|
||||||
|
class company_pad(osv.osv):
|
||||||
|
_inherit = 'res.company'
|
||||||
|
_columns = {
|
||||||
|
'pad_index': fields.char('Pad root URL', size=64, required=True,
|
||||||
|
help="The root URL of the company's pad "
|
||||||
|
"instance"),
|
||||||
|
}
|
||||||
|
_defaults = {
|
||||||
|
'pad_index': 'http://pad.openerp.com'
|
||||||
|
}
|
||||||
|
|
||||||
|
company_pad()
|
|
@ -0,0 +1,16 @@
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
<record id="view_company_form_with_pad" model="ir.ui.view">
|
||||||
|
<field name="name">res.company.form.pad</field>
|
||||||
|
<field name="model">res.company</field>
|
||||||
|
<field name="type">form</field>
|
||||||
|
<field name="inherit_id" ref="base.view_company_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//page[@string='Configuration']" position="inside">
|
||||||
|
<separator string="Pad" colspan="4"/>
|
||||||
|
<field name="pad_index"/>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</openerp>
|
|
@ -31,6 +31,11 @@ class misc_tools_installer(osv.osv_memory):
|
||||||
'idea':fields.boolean('Ideas Box',help='Promote ideas of the employees, votes and discussion on best ideas.'),
|
'idea':fields.boolean('Ideas Box',help='Promote ideas of the employees, votes and discussion on best ideas.'),
|
||||||
'share':fields.boolean('Share Data / Portals',help='This module allows you to easily give restricted access of any filtered list of objects to any customer or supplier.' \
|
'share':fields.boolean('Share Data / Portals',help='This module allows you to easily give restricted access of any filtered list of objects to any customer or supplier.' \
|
||||||
'Just click on the share icon to give access to your customers on their project\'s tasks, support requests, invoices, etc.'),
|
'Just click on the share icon to give access to your customers on their project\'s tasks, support requests, invoices, etc.'),
|
||||||
|
'pad': fields.boolean('Native pad integration',
|
||||||
|
help="This module creates a tighter integration between a Pad "
|
||||||
|
"instance of your choosing and your OpenERP Web Client by "
|
||||||
|
"letting you easily link pads to OpenERP objects via "
|
||||||
|
"OpenERP attachments."),
|
||||||
}
|
}
|
||||||
_defaults = {
|
_defaults = {
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
<field name="idea"/>
|
<field name="idea"/>
|
||||||
<field name="survey"/>
|
<field name="survey"/>
|
||||||
<field name="subscription" groups="base.group_extended"/>
|
<field name="subscription" groups="base.group_extended"/>
|
||||||
|
<field name="pad"/>
|
||||||
</group>
|
</group>
|
||||||
</data>
|
</data>
|
||||||
</field>
|
</field>
|
||||||
|
|
Loading…
Reference in New Issue