Browse Source

[FIX] reindent

pull/255/head
ferdinand 12 years ago
committed by Laurent Mignon (ACSONE)
parent
commit
5d5bff212c
  1. 1
      __init__.py
  2. 60
      partner_id_number.py

1
__init__.py

@ -1,2 +1 @@
import partner_id_number

60
partner_id_number.py

@ -11,41 +11,41 @@ from osv import fields,osv
import pooler
class res_partner_id_category(osv.osv):
_name = "res.partner.id_category"
_columns = {
'code' : fields.char ('Code', size=16, required=True),
'name' : fields.char ('ID Number', size=32, required=True, translate=True),
'active' : fields.boolean ('Active'),
}
_defaults = {
'active': lambda *a: True,
}
_order = "name"
_name = "res.partner.id_category"
_columns = {
'code' : fields.char ('Code', size=16, required=True),
'name' : fields.char ('ID Number', size=32, required=True, translate=True),
'active' : fields.boolean ('Active'),
}
_defaults = {
'active': lambda *a: True,
}
_order = "name"
res_partner_id_category()
class res_partner_id_number(osv.osv):
_name = "res.partner.id_number"
_columns = {
'category_id' : fields.many2one('res.partner.id_category','ID-Category', required=True),
'name' : fields.char ('ID-Number',size=32,required=True),
'partner_id' : fields.many2one('res.partner','Partner', required=True),
'partner_issued_id' : fields.many2one('res.partner','Issued by', required=True),
'date_issued' : fields.date ('Issued'),
'valid_from' : fields.date ('Valid From'),
'valid_until' : fields.date ('Valid Until'),
'comment' : fields.text ('Notes'),
'active' : fields.boolean ('Active'),
'state' : fields.char ('State', size=16),
}
_defaults = {
'active': lambda *a: True,
}
_name = "res.partner.id_number"
_columns = {
'category_id' : fields.many2one('res.partner.id_category','ID-Category', required=True),
'name' : fields.char ('ID-Number',size=32,required=True),
'partner_id' : fields.many2one('res.partner','Partner', required=True),
'partner_issued_id' : fields.many2one('res.partner','Issued by', required=True),
'date_issued' : fields.date ('Issued'),
'valid_from' : fields.date ('Valid From'),
'valid_until' : fields.date ('Valid Until'),
'comment' : fields.text ('Notes'),
'active' : fields.boolean ('Active'),
'state' : fields.char ('State', size=16),
}
_defaults = {
'active': lambda *a: True,
}
res_partner_id_number()
class res_partner(osv.osv):
_inherit = "res.partner"
_columns = {
'id_numbers': fields.one2many('res.partner.id_number','partner_id','Identification Numbers'),
}
_inherit = "res.partner"
_columns = {
'id_numbers': fields.one2many('res.partner.id_number','partner_id','Identification Numbers'),
}
res_partner()
Loading…
Cancel
Save