'Set the product taxes if they have changed'

@api.multi
def set_product_taxes(self):

    ir_values_obj = self.env['ir.values']
    if self.default_sale_tax_id:
        ir_values_obj.sudo().set_default('product.template', 'taxes_id', [self.default_sale_tax_id.id], for_all_users=True, company_id=self.company_id.id)
    if self.default_purchase_tax_id:
        ir_values_obj.sudo().set_default('product.template', 'supplier_taxes_id', [self.default_purchase_tax_id.id], for_all_users=True, company_id=self.company_id.id)
