@classmethod
def from_tax(cls, tax, base_amount, **kwargs):
    """
        Create tax line for given tax and base amount.

        :type cls: type
        :type tax: shuup.core.models.Tax
        :type base_amount: shuup.utils.money.Money
        """
    return cls(tax=tax, name=tax.name, base_amount=base_amount, amount=tax.
        calculate_amount(base_amount), **kwargs)
