~tempo-openerp/+junk/loewert-prod

« back to all changes in this revision

Viewing changes to web/addons/web_tests_demo/__init__.py

  • Committer: jbe at tempo-consulting
  • Date: 2013-08-21 08:48:11 UTC
  • Revision ID: jbe@tempo-consulting.fr-20130821084811-913uo4l7b5ayxq8m
[NEW] Création de la branche trunk Loewert

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from openerp.osv import orm, fields
 
2
 
 
3
class TestObject(orm.Model):
 
4
    _name = 'web_tests_demo.model'
 
5
 
 
6
    _columns = {
 
7
        'name': fields.char("Name", required=True),
 
8
        'thing': fields.char("Thing"),
 
9
        'other': fields.char("Other", required=True)
 
10
    }
 
11
    _defaults = {
 
12
        'other': "bob"
 
13
    }
 
14