def METHOD_NAME(cls):
    try:
        super().METHOD_NAME()
    except Exception:
        cls.skipTest(cls, "l10n_es_aeat_sii_oca seems not installed")
    cls.company.write(
        {
            "with_vat_prorate": True,
            "vat_prorate_ids": [
                (0, 0, {"date": date(2020, 1, 1), "vat_prorate": 20}),
                (0, 0, {"date": date(2021, 1, 1), "vat_prorate": 10}),
            ],
        }
    )
    # Make sure the currency rate 1.2
    cls.usd = cls.env.ref("base.USD")
    cls.usd.rate_ids.unlink()
    cls.usd.rate_ids.create(
        {"name": "2000-01-01", "rate": 1.2, "currency_id": cls.usd.id}
    )