~iratzio-gutierrez/oemedical/oemedical-csm

« back to all changes in this revision

Viewing changes to oemedical/oemedical_pathology/oemedical_pathology.py

  • Committer: Nhomar - Vauxoo
  • Date: 2013-10-23 03:02:27 UTC
  • mfrom: (83.1.120 openobject-oemedical)
  • Revision ID: nhomar@gmail.com-20131023030227-dwgs8z939r2f5al7
[MERGE] Federicos branch, several change and finishing a lot of concepts, sorry for the delay. Thanks, Note: See the commit log for the origin of the merge for more details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    _name = 'oemedical.pathology'
28
28
 
29
29
    _columns = {
30
 
        'category': fields.many2one('oemedical.pathology.category',
31
 
                                    string='Main Category', 
 
30
        'category': fields.many2one('oemedical.pathology.category', string='Main Category', 
32
31
              help='Select the main category for this disease This is usually'\
33
32
        'associated to the standard. For instance, the chapter on the ICD-10'\
34
33
        'will be the main category for de disease' ),
35
34
        'info': fields.text(string='Extra Info'),
36
 
        'code': fields.char(size=256, string='Code', required=True, 
37
 
                            help='Specific Code for the Disease (eg, ICD-10)'),
38
 
        'name': fields.char(size=256, string='Name', required=True,
39
 
                            translate=True, help='Disease name'),
40
 
        'groups': fields.one2many('oemedical.disease_group.members',
41
 
                                  'disease_group_id', string='Groups',
 
35
        'code': fields.char(size=256, string='Code', required=True, help='Specific Code for the Disease (eg, ICD-10)'),
 
36
        'name': fields.char(size=256, string='Name', required=True, translate=True, help='Disease name'),
 
37
        'groups': fields.one2many('oemedical.disease_group.members', 'disease_group_id', string='Groups',
42
38
                     help='Specify the groups this pathology belongs. Some' \
43
39
                     ' automated processes act upon the code of the group' ),
44
 
        'protein': fields.char(size=256, string='Protein involved', 
45
 
                               help='Name of the protein(s) affected'),
 
40
        'protein': fields.char(size=256, string='Protein involved', help='Name of the protein(s) affected'),
46
41
        'gene': fields.char(size=256, string='Gene'),
47
 
        'chromosome': fields.char(size=256, string='Affected Chromosome', 
48
 
                                  help='chromosome number'),
 
42
        'chromosome': fields.char(size=256, string='Affected Chromosome', help='chromosome number'),
49
43
    }
50
44
#    _sql_constraints = [
51
45
#        ('name_uniq', 'UNIQUE(name)', 'Name must be unique!'),