(self)
return '%s/%s' % (prefix, ref)
This computes the reference based on the Odoo format.
            The data used is the reference set on the partner or its database
            id otherwise. For instance if the reference of the customer is
            'dumb customer 97', the reference will be 'CUST/dumb customer 97'.
This computes the reference based on the Odoo format.
            The data used is the reference set on the partner or its database
            id otherwise. For instance if the reference of the customer is
            'dumb customer 97', the reference will be 'CUST/dumb customer 97'.
This computes the reference based on the Odoo format . The data used is the reference set on the partner or its database id otherwise . For instance if the reference of the customer is dumb customer 97 the reference will be CUST / dumb customer 97 .
def _get_invoice_reference_odoo_partner(self):
        """ This computes the reference based on the Odoo format.
            The data used is the reference set on the partner or its database
            id otherwise. For instance if the reference of the customer is
            'dumb customer 97', the reference will be 'CUST/dumb customer 97'.
        """
        ref = self.partner_id.ref or str(self.partner_id.id)
        prefix = _('CUST')
        return '%s/%s' % (prefix, ref)
def _get_invoice_reference_odoo_partner ( self ) : ref = self . partner_id . ref or str ( self . partner_id . id ) prefix = _ ( 'CUST' ) return '%s/%s' % ( prefix , ref )