def get_address_lines(self): address_line = [self.summary, self.address, u"%s %s" % (self.zip, self.city)] if self.vat_id: address_line.append(_(u"Vat in: %s") % self.vat_id) if self.ir: address_line.append(_(u"IR: %s") % self.ir) return address_line
def get_address_lines(self): address_line = [ self.summary, self.address, u'%s %s' % (self.zip, self.city) ] if self.vat_id: address_line.append(_(u'Vat in: %s') % self.vat_id) if self.ir: address_line.append(_(u'IR: %s') % self.ir) return address_line
def _get_address_lines(self): address_line = [self.summary] if self.division: address_line.append(self.division) address_line += [ self.address, u' '.join(filter(None, (self.zip_code, self.city))), ] if self.country: address_line.append(self.country) if self.vat_id: address_line.append(_(u'Vat in: %s') % self.vat_id) if self.ir: address_line.append(_(u'IR: %s') % self.ir) return address_line
def _get_address_lines(self): address_line = [] if self.division: address_line.append(self.division) address_line += [ self.address, u' '.join(filter(None, (self.zip_code, self.city))), ] if self.country: address_line.append(self.country) if self.vat_id: address_line.append(_(u'Vat in: %s') % self.vat_id) if self.ir: address_line.append(_(u'IR: %s') % self.ir) return address_line