Browse Source

empty module res_partner_strip_email

pull/1/head^2
Ilnur Gallyamov 10 years ago
commit
176c9cb2b2
  1. 3
      __init__.py
  2. 34
      __openerp__.py
  3. 20
      controllers.py
  4. 25
      demo.xml
  5. 8
      models.py
  6. 2
      security/ir.model.access.csv
  7. 22
      templates.xml

3
__init__.py

@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
import controllers
import models

34
__openerp__.py

@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
{
'name': "res_partner_strip_email",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long description of module's purpose
""",
'author': "Your Company",
'website': "http://www.yourcompany.com",
# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blob/master/openerp/addons/base/module/module_data.xml
# for the full list
'category': 'Uncategorized',
'version': '0.1',
# any module necessary for this one to work correctly
'depends': ['base'],
# always loaded
'data': [
# 'security/ir.model.access.csv',
'templates.xml',
],
# only loaded in demonstration mode
'demo': [
'demo.xml',
],
}

20
controllers.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from openerp import http
# class ResPartnerStripEmail(http.Controller):
# @http.route('/res_partner_strip_email/res_partner_strip_email/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/res_partner_strip_email/res_partner_strip_email/objects/', auth='public')
# def list(self, **kw):
# return http.request.render('res_partner_strip_email.listing', {
# 'root': '/res_partner_strip_email/res_partner_strip_email',
# 'objects': http.request.env['res_partner_strip_email.res_partner_strip_email'].search([]),
# })
# @http.route('/res_partner_strip_email/res_partner_strip_email/objects/<model("res_partner_strip_email.res_partner_strip_email"):obj>/', auth='public')
# def object(self, obj, **kw):
# return http.request.render('res_partner_strip_email.object', {
# 'object': obj
# })

25
demo.xml

@ -0,0 +1,25 @@
<openerp>
<data>
<!-- -->
<!-- <record id="object0" model="res_partner_strip_email.res_partner_strip_email"> -->
<!-- <field name="name">Object 0</field> -->
<!-- </record> -->
<!-- -->
<!-- <record id="object1" model="res_partner_strip_email.res_partner_strip_email"> -->
<!-- <field name="name">Object 1</field> -->
<!-- </record> -->
<!-- -->
<!-- <record id="object2" model="res_partner_strip_email.res_partner_strip_email"> -->
<!-- <field name="name">Object 2</field> -->
<!-- </record> -->
<!-- -->
<!-- <record id="object3" model="res_partner_strip_email.res_partner_strip_email"> -->
<!-- <field name="name">Object 3</field> -->
<!-- </record> -->
<!-- -->
<!-- <record id="object4" model="res_partner_strip_email.res_partner_strip_email"> -->
<!-- <field name="name">Object 4</field> -->
<!-- </record> -->
<!-- -->
</data>
</openerp>

8
models.py

@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-
from openerp import models, fields, api
# class res_partner_strip_email(models.Model):
# _name = 'res_partner_strip_email.res_partner_strip_email'
# name = fields.Char()

2
security/ir.model.access.csv

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_res_partner_strip_email_res_partner_strip_email,res_partner_strip_email.res_partner_strip_email,model_res_partner_strip_email_res_partner_strip_email,,1,0,0,0

22
templates.xml

@ -0,0 +1,22 @@
<openerp>
<data>
<!-- <template id="listing"> -->
<!-- <ul> -->
<!-- <li t-foreach="objects" t-as="object"> -->
<!-- <a t-attf-href="#{ root }/objects/#{ object.id }"> -->
<!-- <t t-esc="object.display_name"/> -->
<!-- </a> -->
<!-- </li> -->
<!-- </ul> -->
<!-- </template> -->
<!-- <template id="object"> -->
<!-- <h1><t t-esc="object.display_name"/></h1> -->
<!-- <dl> -->
<!-- <t t-foreach="object._fields" t-as="field"> -->
<!-- <dt><t t-esc="field"/></dt> -->
<!-- <dd><t t-esc="object[field]"/></dd> -->
<!-- </t> -->
<!-- </dl> -->
<!-- </template> -->
</data>
</openerp>
Loading…
Cancel
Save