addons14/currency_rate_update/models/res_currency_rate.py
def write(self, values):
        """Unset link to provider in case 'rate' or 'name' are manually changed"""
        if ("rate" in values or "name" in values) and "provider_id" not in values:
            values["provider_id"] = False
        return super().write(values)
Unset link to provider in case 'rate' or 'name' are manually changed
Unset link to provider in case 'rate' or 'name' are manually changed
Unset link to provider in case ' rate ' or ' name ' are manually changed
def write(self, values):
        if ("rate" in values or "name" in values) and "provider_id" not in values:
            values["provider_id"] = False
        return super().write(values)
def write ( self , values ) : if ( "rate" in values or "name" in values ) and "provider_id" not in values : values [ "provider_id" ] = False return super ( ) . write ( values )
Unset link to provider in case 'rate' or 'name' are manually changed
Unset link to provider in case ' rate ' or ' name ' are manually changed
"""Unset link to provider in case 'rate' or 'name' are manually changed"""
self
values