(self)
return ", ".join([x for x in address_fields if x])
V 1.2
        <element name="Direccion" type="T:TextMax250Type" minOccurs="0"/>
            <maxLength value="250"/>
V 1.2
        <element name="Direccion" type="T:TextMax250Type" minOccurs="0"/>
            <maxLength value="250"/>
V 1 . 2 <element name = Direccion type = T : TextMax250Type minOccurs = 0 / > <maxLength value = 250 / >
def tbai_get_value_direccion(self):
        """V 1.2
        <element name="Direccion" type="T:TextMax250Type" minOccurs="0"/>
            <maxLength value="250"/>
        """
        address_fields = [
            "%s" % (self.street or ""),
            "%s" % (self.street2 or ""),
            ("{} {}".format(self.zip or "", self.city or "")).strip(),
            "%s" % (self.state_id.name or ""),
            "%s" % (self.country_id.name or ""),
        ]
        return ", ".join([x for x in address_fields if x])
def tbai_get_value_direccion ( self ) : address_fields = [ "%s" % ( self . street or "" ) , "%s" % ( self . street2 or "" ) , ( "{} {}" . format ( self . zip or "" , self . city or "" ) ) . strip ( ) , "%s" % ( self . state_id . name or "" ) , "%s" % ( self . country_id . name or "" ) , ] return ", " . join ( [ x for x in address_fields if x ] )