Skip to content

Commit

Permalink
Merge pull request #5 from dkrimmer84/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrimmer84 authored Jul 2, 2016
2 parents 8dc2f17 + 61d5aee commit dc67594
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion models/l10n_co_res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from openerp import models, fields, api, exceptions
from openerp.tools.translate import _
import re

import logging
_logger = logging.getLogger(__name__)

class CountryStateCity(models.Model):
"""
Expand Down Expand Up @@ -144,6 +145,14 @@ class PartnerInfoExtended(models.Model):
# Birthday of the contact (only useful for non-company contacts)
xbirthday = fields.Date("Birthday")

def get_doctype(self, cr, uid, context=None):
return dict(self.pool.get('res.partner').fields_get(cr, uid, allfields=['doctype'], context=context)['doctype'][
'selection'])

def get_persontype(self, cr, uid, context=None):
return dict(self.pool.get('res.partner').fields_get(cr, uid, allfields=['personType'], context=context)[
'personType']['selection'])

@api.depends('xidentification')
def _compute_concat_nit(self):
"""
Expand Down

0 comments on commit dc67594

Please sign in to comment.