~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to tiny_purchase/tiny_purchase.py.1

  • Committer: ced
  • Date: 2007-03-30 12:31:07 UTC
  • Revision ID: ced-6c295a7c19ba0a3c2154f68429d6159d83f9bc15
TINY_PURCHASE: add new module, with 4 exercices

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
from osv import osv
 
3
from osv import fields
 
4
 
 
5
 
 
6
class line(osv.osv):
 
7
        _name = "tiny_purchase.line"
 
8
        _columns = {
 
9
                'name': fields.date('Date'),
 
10
                'user_id': fields.char('User', size=64),
 
11
                'product': fields.char('Product', size=64),
 
12
                'quantity': fields.integer('Quantity'),
 
13
                'price': fields.float('Price'),
 
14
                'comments': fields.text('Comments'),
 
15
        }
 
16
line()