@classmethod
def setup_multi_currency_data(cls, default_values={}, rate2016=3.0, rate2017=2.0):
    foreign_currency = cls.env['res.currency'].create({'name': 'Gold Coin', 'symbol': '☺', 'rounding': 0.001, 'position': 'after', 'currency_unit_label': 'Gold', 'currency_subunit_label': 'Silver', **default_values})
    rate1 = cls.env['res.currency.rate'].create({'name': '2016-01-01', 'rate': rate2016, 'currency_id': foreign_currency.id, 'company_id': cls.env.company.id})
    rate2 = cls.env['res.currency.rate'].create({'name': '2017-01-01', 'rate': rate2017, 'currency_id': foreign_currency.id, 'company_id': cls.env.company.id})
    return {'currency': foreign_currency, 'rates': (rate1 + rate2)}
@classmethod
def setup_multi_currency_data(cls, default_values={}, rate2016=3.0, rate2017=2.0):
    foreign_currency = cls.env['res.currency'].create({'name': 'Gold Coin', 'symbol': '☺', 'rounding': 0.001, 'position': 'after', 'currency_unit_label': 'Gold', 'currency_subunit_label': 'Silver', **default_values})
    rate1 = cls.env['res.currency.rate'].create({'name': '2016-01-01', 'rate': rate2016, 'currency_id': foreign_currency.id, 'company_id': cls.env.company.id})
    rate2 = cls.env['res.currency.rate'].create({'name': '2017-01-01', 'rate': rate2017, 'currency_id': foreign_currency.id, 'company_id': cls.env.company.id})
    return {'currency': foreign_currency, 'rates': (rate1 + rate2)}