~savoirfairelinux-openerp/openobject-addons/7.0_stock-merge-picking

« back to all changes in this revision

Viewing changes to boilerplates_account/boilerplates.py

  • Committer: Marco Dieckhoff
  • Date: 2011-05-25 14:32:25 UTC
  • mfrom: (44.1.15 OpenERP_common_modules)
  • Revision ID: marco.dieckhoff@bremskerl.de-20110525143225-cbl6lvbnnft9lq8d
added boilerplates modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
from osv import osv, fields
 
4
 
 
5
class boilerplates_text(osv.osv):
 
6
    _name = "boilerplates.text"
 
7
    _inherit = "boilerplates.text"
 
8
 
 
9
    _columns = {
 
10
        'usability_account': fields.boolean("Usable for Accounting"),
 
11
    }
 
12
    _defaults = {
 
13
        "usability_account": lambda *a: True,
 
14
    }
 
15
boilerplates_text()